in src/main.ts [383:397]
execute(this: Script) {
let script = this.scriptName;
// quote the script name, when it contains white space
if (/\s/g.test(script)) {
script = `"${script}"`;
}
// Create copy of command to ensure that we always get the correct command when the script is rerun.
const cmd = Array.from(command);
if (isScriptCommand) {
lastScript = this;
//Add script name to command array
cmd.push(script);
}
runNpmCommand(cmd, this.cwd, alwaysRunInputWindow);
}