From cd05ed8de91ac13facdd467dfe39e267de094235 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 24 Apr 2015 15:59:36 -0700 Subject: [PATCH] docs(npm-shrinkwrap.readme.md): update instructions --- npm-shrinkwrap.readme.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/npm-shrinkwrap.readme.md b/npm-shrinkwrap.readme.md index 79c8bd63b1..8d6e85a6c5 100644 --- a/npm-shrinkwrap.readme.md +++ b/npm-shrinkwrap.readme.md @@ -15,9 +15,10 @@ See https://github.com/npm/npm/issues/3581 for related npm issue. To add a new dependency do the following: 1. add a new dependency via `npm install -D ` -2. run `./tools/npm/clean-shrinkwrap.js` -3. these steps should change 3 files: `package.json`, `npm-shrinkwrap.json` and `npm-shrinkwrap.clean.json` -4. commit changes to these three files and you are done +2. update npm-shrinkwrap.json with `npm shrinkwrap --dev` +3. run `./tools/npm/clean-shrinkwrap.js` +4. these steps should change 3 files: `package.json`, `npm-shrinkwrap.json` and `npm-shrinkwrap.clean.json` +5. commit changes to these three files and you are done To update existing dependency do the following: