Skip to content

Commit e5de429

Browse files
committed
fix: validation error for the flag
1 parent 1731de9 commit e5de429

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

commands/utils/validate.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,13 @@ module.exports = validate_config = function (lt_config, validation_configs) {
393393
}
394394

395395
//validate that if npm_via_tunnel is set, tunnel must be set to true
396-
if (lt_config["run_settings"]["npm_via_tunnel"]==true && lt_config["tunnel_settings"]["tunnel"] ==false){
397-
reject("Error!! Installing npm packages behind private VPN is supported only with tunnel. Please pass tunnel as true.")
398-
}else{
399-
console.log("Warning!! Using the flag `npm_via_tunnel` may result in higher build duration.")
396+
if (lt_config["run_settings"]["npm_via_tunnel"]==true)
397+
{
398+
if (lt_config["tunnel_settings"]["tunnel"] ==false){
399+
reject("Error!! Installing npm packages behind private VPN is supported only with tunnel. Please pass tunnel as true.");
400+
}else{
401+
console.log("Warning!! Using the flag `npm_via_tunnel` may result in higher build duration.");
402+
}
400403
}
401404

402405
if(lt_config)

0 commit comments

Comments
 (0)