Skip to content

Migrate your npm shrinkwrap to a yarn lockfile without a headache

License

Notifications You must be signed in to change notification settings

dabroek/shrinkwrap-to-lockfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM Shrinkwrap to Yarn lockfile

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.lock file from the updated package.json.

Installation

yarn global add shrinkwrap-to-lockfile

How to use

shrinkwrap-to-lockfile [npm-shrinkwrap-file] [package-file]

That's it!

About

Migrate your npm shrinkwrap to a yarn lockfile without a headache

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published