@vercel/build-utils 8.1.0 → 8.1.1
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/CHANGELOG.md +6 -0
- package/dist/fs/run-user-scripts.js +7 -1
- package/dist/index.js +7 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -430,7 +430,9 @@ function detectPnpmVersion(lockfileVersion, corepackEnabled) {
|
|
430
430
|
return "corepack_enabled";
|
431
431
|
case lockfileVersion === void 0:
|
432
432
|
return "not found";
|
433
|
-
case
|
433
|
+
case lockfileVersion === 5.3:
|
434
|
+
return "pnpm 6";
|
435
|
+
case lockfileVersion === 5.4:
|
434
436
|
return "pnpm 7";
|
435
437
|
case (lockfileVersion === 6 || lockfileVersion === 6.1):
|
436
438
|
return "pnpm 8";
|
@@ -493,6 +495,7 @@ function getPathOverrideForPackageManager({
|
|
493
495
|
detectedLockfile: "pnpm-lock.yaml",
|
494
496
|
detectedPackageManager: "pnpm 9"
|
495
497
|
};
|
498
|
+
case "pnpm 6":
|
496
499
|
default:
|
497
500
|
return no_override;
|
498
501
|
}
|
@@ -523,6 +526,9 @@ function getPathForPackageManager({
|
|
523
526
|
nodeVersion,
|
524
527
|
env
|
525
528
|
});
|
529
|
+
(0, import_debug.default)(
|
530
|
+
`Detected ${overrides.detectedPackageManager} with lockfileVersion ${lockfileVersion} (${typeof lockfileVersion}): ${overrides.path}`
|
531
|
+
);
|
526
532
|
const alreadyInPath = (newPath) => {
|
527
533
|
const oldPath = env.PATH ?? "";
|
528
534
|
return oldPath.split(import_path.default.delimiter).includes(newPath);
|
package/dist/index.js
CHANGED
@@ -22152,7 +22152,9 @@ function detectPnpmVersion(lockfileVersion, corepackEnabled) {
|
|
22152
22152
|
return "corepack_enabled";
|
22153
22153
|
case lockfileVersion === void 0:
|
22154
22154
|
return "not found";
|
22155
|
-
case
|
22155
|
+
case lockfileVersion === 5.3:
|
22156
|
+
return "pnpm 6";
|
22157
|
+
case lockfileVersion === 5.4:
|
22156
22158
|
return "pnpm 7";
|
22157
22159
|
case (lockfileVersion === 6 || lockfileVersion === 6.1):
|
22158
22160
|
return "pnpm 8";
|
@@ -22215,6 +22217,7 @@ function getPathOverrideForPackageManager({
|
|
22215
22217
|
detectedLockfile: "pnpm-lock.yaml",
|
22216
22218
|
detectedPackageManager: "pnpm 9"
|
22217
22219
|
};
|
22220
|
+
case "pnpm 6":
|
22218
22221
|
default:
|
22219
22222
|
return no_override;
|
22220
22223
|
}
|
@@ -22245,6 +22248,9 @@ function getPathForPackageManager({
|
|
22245
22248
|
nodeVersion,
|
22246
22249
|
env
|
22247
22250
|
});
|
22251
|
+
debug(
|
22252
|
+
`Detected ${overrides.detectedPackageManager} with lockfileVersion ${lockfileVersion} (${typeof lockfileVersion}): ${overrides.path}`
|
22253
|
+
);
|
22248
22254
|
const alreadyInPath = (newPath) => {
|
22249
22255
|
const oldPath = env.PATH ?? "";
|
22250
22256
|
return oldPath.split(import_path5.default.delimiter).includes(newPath);
|