This repository was archived by the owner on Feb 18, 2021. It is now read-only.
File tree 3 files changed +8
-13
lines changed
3 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -198,10 +198,9 @@ Options:
198
198
199
199
#### ` npm-shrinkwrap check `
200
200
201
- Asserts that your ` npm-shrinkwrap.json ` file and node_modules
202
- directory are in sync. If any excess modules are in your
203
- node_modules folder, ` check ` will return an error and print
204
- a list of the excess dependencies that are installed.
201
+ Asserts that your ` npm-shrinkwrap.json ` file, ` package.json ` file,
202
+ and node_modules directory are in sync. If any inconsistency
203
+ is found, an error is returned.
205
204
206
205
Options:
207
206
--dirname sets the directory of the npm-shrinkwrap.json
Original file line number Diff line number Diff line change @@ -75,11 +75,8 @@ function main(opts, callback) {
75
75
'into node_modules' ) ;
76
76
} ) ;
77
77
} else if ( command === 'check' ) {
78
- // Otherwise, we check to see if any erroneous dependencies are
79
- // installed.
80
- //
81
78
// We set opts.dry to true, which suppresses all side effects in the
82
- // shrinkShrinkwrap routine.
79
+ // syncShrinkwrap routine.
83
80
opts . dry = true ;
84
81
85
82
return syncShrinkwrap ( opts , function ( err , errorReport ) {
@@ -119,7 +116,7 @@ function main(opts, callback) {
119
116
}
120
117
121
118
console . log ( 'npm-shrinkwrap.json is in sync ' +
122
- 'with package.json' ) ;
119
+ 'with package.json and node_modules ' ) ;
123
120
} ) ;
124
121
}
125
122
Original file line number Diff line number Diff line change @@ -36,10 +36,9 @@ Options:
36
36
37
37
## ` {cmd} check `
38
38
39
- Asserts that your ` npm-shrinkwrap.json ` file and node_modules
40
- directory are in sync. If any excess modules are in your
41
- node_modules folder, ` check ` will return an error and print
42
- a list of the excess dependencies that are installed.
39
+ Asserts that your ` npm-shrinkwrap.json ` file, ` package.json ` file,
40
+ and node_modules directory are in sync. If any inconsistency
41
+ is found, an error is returned.
43
42
44
43
Options:
45
44
--dirname sets the directory of the npm-shrinkwrap.json
You can’t perform that action at this time.
0 commit comments