https://github.com/dabroek/shrinkwrap-to-lockfile
Migrate your npm shrinkwrap to a yarn lockfile without a headache
https://github.com/dabroek/shrinkwrap-to-lockfile
lockfile migration npm shrinkwrap yarn
Last synced: about 2 months ago
JSON representation
Migrate your npm shrinkwrap to a yarn lockfile without a headache
- Host: GitHub
- URL: https://github.com/dabroek/shrinkwrap-to-lockfile
- Owner: dabroek
- License: mit
- Created: 2017-06-20T22:25:39.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-21T21:44:16.000Z (almost 8 years ago)
- Last Synced: 2024-04-24T16:24:28.500Z (about 1 year ago)
- Topics: lockfile, migration, npm, shrinkwrap, yarn
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
yarn global add shrinkwrap-to-lockfile
```## How to use
```bash
shrinkwrap-to-lockfile [npm-shrinkwrap-file] [package-file]
```That's it!