@vercel/build-utils 8.3.9 → 8.4.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/CHANGELOG.md +6 -0
- package/dist/fs/run-user-scripts.js +6 -8
- package/dist/index.js +6 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -557,16 +557,14 @@ function validateCorepackPackageManager(cliType, lockfileVersion, corepackPackag
|
|
557
557
|
corepackPackageManager
|
558
558
|
);
|
559
559
|
if (!validatedCorepackPackageManager) {
|
560
|
-
|
561
|
-
`
|
560
|
+
throw new Error(
|
561
|
+
`Intended corepack defined package manager "${corepackPackageManager}" is not a valid semver value.`
|
562
562
|
);
|
563
|
-
return;
|
564
563
|
}
|
565
564
|
if (cliType !== validatedCorepackPackageManager.packageName) {
|
566
|
-
|
567
|
-
`
|
565
|
+
throw new Error(
|
566
|
+
`Detected package manager "${cliType}" does not match intended corepack defined package manager "${validatedCorepackPackageManager.packageName}". Change your lockfile or "package.json#packageManager" value to match.`
|
568
567
|
);
|
569
|
-
return;
|
570
568
|
}
|
571
569
|
if (cliType === "pnpm" && enginesPnpmVersionRange) {
|
572
570
|
const pnpmWithinEngineRange = (0, import_semver.satisfies)(
|
@@ -586,8 +584,8 @@ function validateCorepackPackageManager(cliType, lockfileVersion, corepackPackag
|
|
586
584
|
validatedCorepackPackageManager.packageVersion
|
587
585
|
);
|
588
586
|
if (!lockfileValid) {
|
589
|
-
|
590
|
-
`
|
587
|
+
throw new Error(
|
588
|
+
`Detected lockfile "${lockfileVersion}" which is not compatible with the intended corepack package manager "${corepackPackageManager}". Update your lockfile or change to a compatible corepack version.`
|
591
589
|
);
|
592
590
|
}
|
593
591
|
}
|
package/dist/index.js
CHANGED
@@ -22278,16 +22278,14 @@ function validateCorepackPackageManager(cliType, lockfileVersion, corepackPackag
|
|
22278
22278
|
corepackPackageManager
|
22279
22279
|
);
|
22280
22280
|
if (!validatedCorepackPackageManager) {
|
22281
|
-
|
22282
|
-
`
|
22281
|
+
throw new Error(
|
22282
|
+
`Intended corepack defined package manager "${corepackPackageManager}" is not a valid semver value.`
|
22283
22283
|
);
|
22284
|
-
return;
|
22285
22284
|
}
|
22286
22285
|
if (cliType !== validatedCorepackPackageManager.packageName) {
|
22287
|
-
|
22288
|
-
`
|
22286
|
+
throw new Error(
|
22287
|
+
`Detected package manager "${cliType}" does not match intended corepack defined package manager "${validatedCorepackPackageManager.packageName}". Change your lockfile or "package.json#packageManager" value to match.`
|
22289
22288
|
);
|
22290
|
-
return;
|
22291
22289
|
}
|
22292
22290
|
if (cliType === "pnpm" && enginesPnpmVersionRange) {
|
22293
22291
|
const pnpmWithinEngineRange = (0, import_semver2.satisfies)(
|
@@ -22307,8 +22305,8 @@ function validateCorepackPackageManager(cliType, lockfileVersion, corepackPackag
|
|
22307
22305
|
validatedCorepackPackageManager.packageVersion
|
22308
22306
|
);
|
22309
22307
|
if (!lockfileValid) {
|
22310
|
-
|
22311
|
-
`
|
22308
|
+
throw new Error(
|
22309
|
+
`Detected lockfile "${lockfileVersion}" which is not compatible with the intended corepack package manager "${corepackPackageManager}". Update your lockfile or change to a compatible corepack version.`
|
22312
22310
|
);
|
22313
22311
|
}
|
22314
22312
|
}
|