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
constinstall=cp.spawnSync(`npm`,["i","--ignore-scripts"],{ cwd,timeout: timeout/2,shell: true, stdio });// NPM shouldn't take the entire timeout - if it takes a long time, it should be terminated and we should log the failure
73
-
if(install.status!==0)thrownewError(`NPM Install for ${directoryName} failed: ${install.stderr.toString()}`);
69
+
exec("npm",["i","--ignore-scripts"],{ cwd,timeout: timeout/2});// NPM shouldn't take the entire timeout - if it takes a long time, it should be terminated and we should log the failure
// Also actually install those types (for, eg, the js projects which need node)
79
-
constinstall=cp.spawnSync(`npm`,["i", ...types.map(t=>`@types/${t}`),"--no-save","--ignore-scripts"],{cwd: originalCwd,timeout: timeout/2,shell: true, stdio });// NPM shouldn't take the entire timeout - if it takes a long time, it should be terminated and we should log the failure
80
-
if(install.status!==0)thrownewError(`NPM Install types for ${directoryName} failed: ${install.stderr.toString()}`);
75
+
exec("npm",["i", ...types.map(t=>`@types/${t}`),"--no-save","--ignore-scripts"],{cwd: originalCwd,timeout: timeout/2});// NPM shouldn't take the entire timeout - if it takes a long time, it should be terminated and we should log the failure
0 commit comments