You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the added code in pull request "Use "--omit=dev" internally on newer npm version (#86)" is not correct and the version check is always false. Thus the production flag is not used.
I think the solution is to change the following function
function getNpmVersion() {
var version = child_process_1.exec('npm --version');
return version.stdout.toString();
}
into
function getNpmVersion() {
var version = child_process_1.execSync('npm --version');
return version.toString();
}
In addition please re-add the test for older versions.
Best regards,
Erik
The text was updated successfully, but these errors were encountered:
the added code in pull request "Use "--omit=dev" internally on newer npm version (#86)" is not correct and the version check is always false. Thus the production flag is not used.
I think the solution is to change the following function
function getNpmVersion() {
var version = child_process_1.exec('npm --version');
return version.stdout.toString();
}
into
function getNpmVersion() {
var version = child_process_1.execSync('npm --version');
return version.toString();
}
That seems plausible (I can't test this right now unfortunately), do you want to create a PR for this change?
In addition please re-add the test for older versions.
Feel free to submit a PR to run on older version, if they pass it should be good to go anyway.
Hello,
the added code in pull request "Use "--omit=dev" internally on newer npm version (#86)" is not correct and the version check is always false. Thus the production flag is not used.
I think the solution is to change the following function
into
In addition please re-add the test for older versions.
Best regards,
Erik
The text was updated successfully, but these errors were encountered: