@wix/evalforge-evaluator 0.194.0 → 0.195.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +19 -13
- package/build/index.js.map +2 -2
- package/build/index.mjs +19 -13
- package/build/index.mjs.map +2 -2
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -7373,7 +7373,7 @@ var import_crypto = require("crypto");
|
|
|
7373
7373
|
var import_path2 = __toESM(require("path"));
|
|
7374
7374
|
var import_child_process = require("child_process");
|
|
7375
7375
|
var INSTALL_TIMEOUT_MS = 1e5;
|
|
7376
|
-
var
|
|
7376
|
+
var PNPM_BOOTSTRAP_TIMEOUT_MS = 6e4;
|
|
7377
7377
|
var HEARTBEAT_INTERVAL_MS = 5e3;
|
|
7378
7378
|
function reportRegistry(workDir, onProgress) {
|
|
7379
7379
|
try {
|
|
@@ -7489,34 +7489,40 @@ async function runCommand(exec, cmd, args, workDir, onProgress, label, timeoutMs
|
|
|
7489
7489
|
clearInterval(heartbeat);
|
|
7490
7490
|
}
|
|
7491
7491
|
}
|
|
7492
|
+
var PNPM_INSTALL_ARGS = [
|
|
7493
|
+
"install",
|
|
7494
|
+
"--shamefully-hoist",
|
|
7495
|
+
"--ignore-scripts",
|
|
7496
|
+
"--network-concurrency=8"
|
|
7497
|
+
];
|
|
7492
7498
|
async function runInstall(exec, pm, workDir, onProgress) {
|
|
7493
7499
|
reportRegistry(workDir, onProgress);
|
|
7494
|
-
const
|
|
7500
|
+
const pnpmReady = await runCommand(
|
|
7495
7501
|
exec,
|
|
7496
7502
|
"npm",
|
|
7497
|
-
["install", "-g", "
|
|
7503
|
+
["install", "-g", "pnpm"],
|
|
7498
7504
|
workDir,
|
|
7499
7505
|
onProgress,
|
|
7500
|
-
"
|
|
7501
|
-
|
|
7506
|
+
"pnpm bootstrap",
|
|
7507
|
+
PNPM_BOOTSTRAP_TIMEOUT_MS
|
|
7502
7508
|
);
|
|
7503
|
-
if (
|
|
7504
|
-
const
|
|
7509
|
+
if (pnpmReady) {
|
|
7510
|
+
const pnpmOk = await runCommand(
|
|
7505
7511
|
exec,
|
|
7506
|
-
"
|
|
7507
|
-
|
|
7512
|
+
"pnpm",
|
|
7513
|
+
PNPM_INSTALL_ARGS,
|
|
7508
7514
|
workDir,
|
|
7509
7515
|
onProgress,
|
|
7510
|
-
"
|
|
7516
|
+
"pnpm install",
|
|
7511
7517
|
INSTALL_TIMEOUT_MS
|
|
7512
7518
|
);
|
|
7513
|
-
if (
|
|
7519
|
+
if (pnpmOk) {
|
|
7514
7520
|
reportNodeModules(workDir, onProgress);
|
|
7515
7521
|
return true;
|
|
7516
7522
|
}
|
|
7517
|
-
onProgress("[diag]
|
|
7523
|
+
onProgress("[diag] pnpm install failed \u2014 falling back to npm");
|
|
7518
7524
|
} else {
|
|
7519
|
-
onProgress("[diag]
|
|
7525
|
+
onProgress("[diag] pnpm bootstrap failed \u2014 falling back to npm");
|
|
7520
7526
|
}
|
|
7521
7527
|
const ok = await runCommand(
|
|
7522
7528
|
exec,
|