File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,11 @@ export class Install {
199
199
// remove integrity hash to make this operation atomic
200
200
await fs . unlink ( match . loc ) ;
201
201
202
+ // warn if we have a shrinkwrap
203
+ if ( await fs . exists ( path . join ( this . config . cwd , 'npm-shrinkwrap.json' ) ) ) {
204
+ this . reporter . error ( this . reporter . lang ( 'shrinkwrapWarning' ) ) ;
205
+ }
206
+
202
207
//
203
208
let patterns = rawPatterns ;
204
209
let steps : Array < ( curr : number , total : number ) => Promise < void >> = [ ] ;
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ let messages = {
51
51
invalidHostedGitFragment : 'Invalid hosted git fragment $0.' ,
52
52
couldntFindManifestIn : "Couldn't find manifest in $0." ,
53
53
invalidFragment : 'Invalid fragment $0.' ,
54
+ shrinkwrapWarning : 'npm-shrinkwrap.json found. This will not be updated or respected. See [TODO] for more information.' ,
54
55
55
56
commandNotSpecified : 'No command specified.' ,
56
57
possibleCommands : 'Possible commands' ,
You can’t perform that action at this time.
0 commit comments