@vercel/build-utils 8.1.0 → 8.1.2
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 +12 -0
- package/dist/fs/run-user-scripts.js +10 -1
- package/dist/index.js +10 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @vercel/build-utils
|
2
2
|
|
3
|
+
## 8.1.2
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- add log to package manager version detection ([#11592](https://github.com/vercel/vercel/pull/11592))
|
8
|
+
|
9
|
+
## 8.1.1
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- [build-utils] pnpm lockfile testing and fixing ([#11591](https://github.com/vercel/vercel/pull/11591))
|
14
|
+
|
3
15
|
## 8.1.0
|
4
16
|
|
5
17
|
### Minor Changes
|
@@ -397,6 +397,9 @@ function getEnvForPackageManager({
|
|
397
397
|
nodeVersion,
|
398
398
|
env
|
399
399
|
});
|
400
|
+
(0, import_debug.default)(
|
401
|
+
`Detected ${detectedPackageManager} with lockfileVersion ${lockfileVersion} (${typeof lockfileVersion}): ${newPath}`
|
402
|
+
);
|
400
403
|
const newEnv = {
|
401
404
|
...env
|
402
405
|
};
|
@@ -430,7 +433,9 @@ function detectPnpmVersion(lockfileVersion, corepackEnabled) {
|
|
430
433
|
return "corepack_enabled";
|
431
434
|
case lockfileVersion === void 0:
|
432
435
|
return "not found";
|
433
|
-
case
|
436
|
+
case lockfileVersion === 5.3:
|
437
|
+
return "pnpm 6";
|
438
|
+
case lockfileVersion === 5.4:
|
434
439
|
return "pnpm 7";
|
435
440
|
case (lockfileVersion === 6 || lockfileVersion === 6.1):
|
436
441
|
return "pnpm 8";
|
@@ -493,6 +498,7 @@ function getPathOverrideForPackageManager({
|
|
493
498
|
detectedLockfile: "pnpm-lock.yaml",
|
494
499
|
detectedPackageManager: "pnpm 9"
|
495
500
|
};
|
501
|
+
case "pnpm 6":
|
496
502
|
default:
|
497
503
|
return no_override;
|
498
504
|
}
|
@@ -523,6 +529,9 @@ function getPathForPackageManager({
|
|
523
529
|
nodeVersion,
|
524
530
|
env
|
525
531
|
});
|
532
|
+
(0, import_debug.default)(
|
533
|
+
`Detected ${overrides.detectedPackageManager} with lockfileVersion ${lockfileVersion} (${typeof lockfileVersion}): ${overrides.path}`
|
534
|
+
);
|
526
535
|
const alreadyInPath = (newPath) => {
|
527
536
|
const oldPath = env.PATH ?? "";
|
528
537
|
return oldPath.split(import_path.default.delimiter).includes(newPath);
|
package/dist/index.js
CHANGED
@@ -22119,6 +22119,9 @@ function getEnvForPackageManager({
|
|
22119
22119
|
nodeVersion,
|
22120
22120
|
env
|
22121
22121
|
});
|
22122
|
+
debug(
|
22123
|
+
`Detected ${detectedPackageManager} with lockfileVersion ${lockfileVersion} (${typeof lockfileVersion}): ${newPath}`
|
22124
|
+
);
|
22122
22125
|
const newEnv = {
|
22123
22126
|
...env
|
22124
22127
|
};
|
@@ -22152,7 +22155,9 @@ function detectPnpmVersion(lockfileVersion, corepackEnabled) {
|
|
22152
22155
|
return "corepack_enabled";
|
22153
22156
|
case lockfileVersion === void 0:
|
22154
22157
|
return "not found";
|
22155
|
-
case
|
22158
|
+
case lockfileVersion === 5.3:
|
22159
|
+
return "pnpm 6";
|
22160
|
+
case lockfileVersion === 5.4:
|
22156
22161
|
return "pnpm 7";
|
22157
22162
|
case (lockfileVersion === 6 || lockfileVersion === 6.1):
|
22158
22163
|
return "pnpm 8";
|
@@ -22215,6 +22220,7 @@ function getPathOverrideForPackageManager({
|
|
22215
22220
|
detectedLockfile: "pnpm-lock.yaml",
|
22216
22221
|
detectedPackageManager: "pnpm 9"
|
22217
22222
|
};
|
22223
|
+
case "pnpm 6":
|
22218
22224
|
default:
|
22219
22225
|
return no_override;
|
22220
22226
|
}
|
@@ -22245,6 +22251,9 @@ function getPathForPackageManager({
|
|
22245
22251
|
nodeVersion,
|
22246
22252
|
env
|
22247
22253
|
});
|
22254
|
+
debug(
|
22255
|
+
`Detected ${overrides.detectedPackageManager} with lockfileVersion ${lockfileVersion} (${typeof lockfileVersion}): ${overrides.path}`
|
22256
|
+
);
|
22248
22257
|
const alreadyInPath = (newPath) => {
|
22249
22258
|
const oldPath = env.PATH ?? "";
|
22250
22259
|
return oldPath.split(import_path5.default.delimiter).includes(newPath);
|