bpk-scope-migration
Renames dependencies related to Backpack to use scoped packages. Works on dependencies
, devDependencies
and peerDependencies
.
Example
Before
{
"name": "my-package",
"version": "1.0.0",
"dependencies": {
"bpk-component-button": "^1.2.3",
"bpk-component-switch": "4.5.6",
"lodash": "^7.8.9"
}
}
After
{
"name": "my-package",
"version": "1.0.0",
"dependencies": {
"@skyscanner/bpk-component-button": "^1.2.3",
"@skyscanner/bpk-component-switch": "4.5.6",
"lodash": "^7.8.9"
}
}
Usage
In the folder where your package.json
is stored:
npx @skyscanner/bpk-scope-migration