Migrate your npm-shrinkwrap.json to a yarn lockfile without a headache!
The migration consists of three steps:
- extract the dependency versions from the
npm-shrinkwrap.json; - save and lock down these versions in the
package.json(by removing the version leniency, i.e.~and^); - generate a new
yarn.lockfile from the updatedpackage.json.
yarn global add shrinkwrap-to-lockfileshrinkwrap-to-lockfile [npm-shrinkwrap-file] [package-file]That's it!