@vercel/build-utils 8.1.1 → 8.1.3

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 8.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [build-utils] log more around package manager detection ([#11594](https://github.com/vercel/vercel/pull/11594))
8
+
9
+ ## 8.1.2
10
+
11
+ ### Patch Changes
12
+
13
+ - add log to package manager version detection ([#11592](https://github.com/vercel/vercel/pull/11592))
14
+
3
15
  ## 8.1.1
4
16
 
5
17
  ### Patch Changes
@@ -397,6 +397,10 @@ function getEnvForPackageManager({
397
397
  nodeVersion,
398
398
  env
399
399
  });
400
+ const corepackEnabled = env.ENABLE_EXPERIMENTAL_COREPACK === "1";
401
+ (0, import_debug.default)(
402
+ `Detected ${detectedPackageManager} given lockfileVersion "${lockfileVersion}", package manager cli "${cliType}", and corepack enabled? ${corepackEnabled}: ${newPath}`
403
+ );
400
404
  const newEnv = {
401
405
  ...env
402
406
  };
@@ -526,9 +530,6 @@ function getPathForPackageManager({
526
530
  nodeVersion,
527
531
  env
528
532
  });
529
- (0, import_debug.default)(
530
- `Detected ${overrides.detectedPackageManager} with lockfileVersion ${lockfileVersion} (${typeof lockfileVersion}): ${overrides.path}`
531
- );
532
533
  const alreadyInPath = (newPath) => {
533
534
  const oldPath = env.PATH ?? "";
534
535
  return oldPath.split(import_path.default.delimiter).includes(newPath);
package/dist/index.js CHANGED
@@ -22119,6 +22119,10 @@ function getEnvForPackageManager({
22119
22119
  nodeVersion,
22120
22120
  env
22121
22121
  });
22122
+ const corepackEnabled = env.ENABLE_EXPERIMENTAL_COREPACK === "1";
22123
+ debug(
22124
+ `Detected ${detectedPackageManager} given lockfileVersion "${lockfileVersion}", package manager cli "${cliType}", and corepack enabled? ${corepackEnabled}: ${newPath}`
22125
+ );
22122
22126
  const newEnv = {
22123
22127
  ...env
22124
22128
  };
@@ -22248,9 +22252,6 @@ function getPathForPackageManager({
22248
22252
  nodeVersion,
22249
22253
  env
22250
22254
  });
22251
- debug(
22252
- `Detected ${overrides.detectedPackageManager} with lockfileVersion ${lockfileVersion} (${typeof lockfileVersion}): ${overrides.path}`
22253
- );
22254
22255
  const alreadyInPath = (newPath) => {
22255
22256
  const oldPath = env.PATH ?? "";
22256
22257
  return oldPath.split(import_path5.default.delimiter).includes(newPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "8.1.1",
3
+ "version": "8.1.3",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",