Skip to content

Commit 2b1c5c2

Browse files
force npm flag added
1 parent 6090af7 commit 2b1c5c2

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

commands/utils/set_args.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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 ||

index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)