foundations-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-svgs": "^1.2.3",
"bpk-tokens": "4.5.6",
"lodash": "^7.8.9"
}
}
After
{
"name": "my-package",
"version": "1.0.0",
"dependencies": {
"@skyscanner/bpk-svgs": "^1.2.3",
"@skyscanner/bpk-foundations-web": "4.5.6",
"lodash": "^7.8.9"
}
}
Usage
In the folder where your package.json
is stored:
npx @skyscanner/foundations-migration