Skip to content

Commit bd479c8

Browse files
authored
Merge pull request #195 from japneetlambdatest/CYP-413
force npm flag added
2 parents 407a78a + e5be038 commit bd479c8

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

commands/utils/set_args.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,13 @@ function sync_args_from_cmd(args) {
378378
"specs to exclude are ",
379379
lt_config["run_settings"]["exclude_specs"]
380380
);
381+
382+
if ("npm-f" in args) {
383+
lt_config.run_settings.npmf = args["npm-f"];
384+
}
385+
if ("npm-lpd" in args) {
386+
lt_config.run_settings.npmlpd = args["npm-lpd"];
387+
}
381388
//get specs from current directory if specs are not passed in config or cli
382389
if (
383390
(lt_config["run_settings"]["specs"] == undefined ||

index.js

100755100644
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ const argv = require("yargs")
133133
describe: "system environment variables",
134134
type: "string",
135135
})
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",
136145
.option("vip", {
137146
alias: "vi-project",
138147
describe: "visual ui project name",

0 commit comments

Comments
 (0)