Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new Promise((resolve, reject) => {
build
.runShell('npm', args, {
// Disable stdout
stdio: [process.stdin, process.stdout, process.stderr],
cwd: sandbox,
})
.on('close', code => {
assert.equal(code, 0);
resolve();
});
});
}