File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -369,6 +369,13 @@ function sync_args_from_cmd(args) {
369369 "specs to exclude are " ,
370370 lt_config [ "run_settings" ] [ "exclude_specs" ]
371371 ) ;
372+
373+ if ( "npm-f" in args ) {
374+ lt_config . run_settings . npmf = args [ "npm-f" ] ;
375+ }
376+ if ( "npm-lpd" in args ) {
377+ lt_config . run_settings . npmlpd = args [ "npm-lpd" ] ;
378+ }
372379 //get specs from current directory if specs are not passed in config or cli
373380 if (
374381 ( lt_config [ "run_settings" ] [ "specs" ] == undefined ||
Original file line number Diff line number Diff line change @@ -132,6 +132,16 @@ const argv = require("yargs")
132132 alias : "sys-env-variables" ,
133133 describe : "system environment variables" ,
134134 type : "string" ,
135+ } )
136+ . option ( "npm-f" , {
137+ alias : "npm-force" ,
138+ describe : "force npm install" ,
139+ type : "bool" ,
140+ } )
141+ . option ( "npm-lpd" , {
142+ alias : "legacy-peer-deps" ,
143+ describe : "force npm install" ,
144+ type : "bool" ,
135145 } ) ;
136146 } ,
137147 function ( argv ) {
You can’t perform that action at this time.
0 commit comments