@vercel/build-utils 8.1.2 → 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,11 @@
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
+
3
9
  ## 8.1.2
4
10
 
5
11
  ### Patch Changes
@@ -397,8 +397,9 @@ function getEnvForPackageManager({
397
397
  nodeVersion,
398
398
  env
399
399
  });
400
+ const corepackEnabled = env.ENABLE_EXPERIMENTAL_COREPACK === "1";
400
401
  (0, import_debug.default)(
401
- `Detected ${detectedPackageManager} with lockfileVersion ${lockfileVersion} (${typeof lockfileVersion}): ${newPath}`
402
+ `Detected ${detectedPackageManager} given lockfileVersion "${lockfileVersion}", package manager cli "${cliType}", and corepack enabled? ${corepackEnabled}: ${newPath}`
402
403
  );
403
404
  const newEnv = {
404
405
  ...env
@@ -529,9 +530,6 @@ function getPathForPackageManager({
529
530
  nodeVersion,
530
531
  env
531
532
  });
532
- (0, import_debug.default)(
533
- `Detected ${overrides.detectedPackageManager} with lockfileVersion ${lockfileVersion} (${typeof lockfileVersion}): ${overrides.path}`
534
- );
535
533
  const alreadyInPath = (newPath) => {
536
534
  const oldPath = env.PATH ?? "";
537
535
  return oldPath.split(import_path.default.delimiter).includes(newPath);
package/dist/index.js CHANGED
@@ -22119,8 +22119,9 @@ function getEnvForPackageManager({
22119
22119
  nodeVersion,
22120
22120
  env
22121
22121
  });
22122
+ const corepackEnabled = env.ENABLE_EXPERIMENTAL_COREPACK === "1";
22122
22123
  debug(
22123
- `Detected ${detectedPackageManager} with lockfileVersion ${lockfileVersion} (${typeof lockfileVersion}): ${newPath}`
22124
+ `Detected ${detectedPackageManager} given lockfileVersion "${lockfileVersion}", package manager cli "${cliType}", and corepack enabled? ${corepackEnabled}: ${newPath}`
22124
22125
  );
22125
22126
  const newEnv = {
22126
22127
  ...env
@@ -22251,9 +22252,6 @@ function getPathForPackageManager({
22251
22252
  nodeVersion,
22252
22253
  env
22253
22254
  });
22254
- debug(
22255
- `Detected ${overrides.detectedPackageManager} with lockfileVersion ${lockfileVersion} (${typeof lockfileVersion}): ${overrides.path}`
22256
- );
22257
22255
  const alreadyInPath = (newPath) => {
22258
22256
  const oldPath = env.PATH ?? "";
22259
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.2",
3
+ "version": "8.1.3",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",