@vercel/build-utils 5.5.0 → 5.5.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/dist/errors.js +2 -2
- package/dist/fs/node-version.js +1 -1
- package/dist/fs/run-user-scripts.js +2 -1
- package/dist/index.js +5 -4
- package/package.json +2 -2
package/dist/errors.js
CHANGED
@@ -33,7 +33,7 @@ function getPrettyError(obj) {
|
|
33
33
|
message += `${ajvMessage}.`;
|
34
34
|
}
|
35
35
|
return new NowBuildError({
|
36
|
-
code: '
|
36
|
+
code: 'INVALID_VERCEL_CONFIG',
|
37
37
|
message: message,
|
38
38
|
link: prop ? `${docsUrl}#project/${prop.toLowerCase()}` : docsUrl,
|
39
39
|
action: 'View Documentation',
|
@@ -41,7 +41,7 @@ function getPrettyError(obj) {
|
|
41
41
|
}
|
42
42
|
catch (e) {
|
43
43
|
return new NowBuildError({
|
44
|
-
code: '
|
44
|
+
code: 'INVALID_VERCEL_CONFIG',
|
45
45
|
message: `Failed to validate configuration.`,
|
46
46
|
link: docsUrl,
|
47
47
|
action: 'View Documentation',
|
package/dist/fs/node-version.js
CHANGED
@@ -305,7 +305,8 @@ async function runNpmInstall(destPath, args = [], spawnOpts, meta, nodeVersion)
|
|
305
305
|
});
|
306
306
|
let commandArgs;
|
307
307
|
const isPotentiallyBrokenNpm = cliType === 'npm' &&
|
308
|
-
nodeVersion?.major === 16
|
308
|
+
(nodeVersion?.major === 16 ||
|
309
|
+
opts.env.PATH?.includes('/node16/bin-npm7')) &&
|
309
310
|
!args.includes('--legacy-peer-deps') &&
|
310
311
|
spawnOpts?.env?.ENABLE_EXPERIMENTAL_COREPACK !== '1';
|
311
312
|
if (cliType === 'npm') {
|
package/dist/index.js
CHANGED
@@ -30236,7 +30236,7 @@ function getPrettyError(obj) {
|
|
30236
30236
|
message += `${ajvMessage}.`;
|
30237
30237
|
}
|
30238
30238
|
return new NowBuildError({
|
30239
|
-
code: '
|
30239
|
+
code: 'INVALID_VERCEL_CONFIG',
|
30240
30240
|
message: message,
|
30241
30241
|
link: prop ? `${docsUrl}#project/${prop.toLowerCase()}` : docsUrl,
|
30242
30242
|
action: 'View Documentation',
|
@@ -30244,7 +30244,7 @@ function getPrettyError(obj) {
|
|
30244
30244
|
}
|
30245
30245
|
catch (e) {
|
30246
30246
|
return new NowBuildError({
|
30247
|
-
code: '
|
30247
|
+
code: 'INVALID_VERCEL_CONFIG',
|
30248
30248
|
message: `Failed to validate configuration.`,
|
30249
30249
|
link: docsUrl,
|
30250
30250
|
action: 'View Documentation',
|
@@ -30711,7 +30711,7 @@ const allOptions = [
|
|
30711
30711
|
major: 12,
|
30712
30712
|
range: '12.x',
|
30713
30713
|
runtime: 'nodejs12.x',
|
30714
|
-
discontinueDate: new Date('2022-10-
|
30714
|
+
discontinueDate: new Date('2022-10-03'),
|
30715
30715
|
},
|
30716
30716
|
{
|
30717
30717
|
major: 10,
|
@@ -31178,7 +31178,8 @@ async function runNpmInstall(destPath, args = [], spawnOpts, meta, nodeVersion)
|
|
31178
31178
|
});
|
31179
31179
|
let commandArgs;
|
31180
31180
|
const isPotentiallyBrokenNpm = cliType === 'npm' &&
|
31181
|
-
nodeVersion?.major === 16
|
31181
|
+
(nodeVersion?.major === 16 ||
|
31182
|
+
opts.env.PATH?.includes('/node16/bin-npm7')) &&
|
31182
31183
|
!args.includes('--legacy-peer-deps') &&
|
31183
31184
|
spawnOpts?.env?.ENABLE_EXPERIMENTAL_COREPACK !== '1';
|
31184
31185
|
if (cliType === 'npm') {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/build-utils",
|
3
|
-
"version": "5.5.
|
3
|
+
"version": "5.5.2",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"types": "./dist/index.d.js",
|
@@ -47,5 +47,5 @@
|
|
47
47
|
"typescript": "4.3.4",
|
48
48
|
"yazl": "2.5.1"
|
49
49
|
},
|
50
|
-
"gitHead": "
|
50
|
+
"gitHead": "8cd84ec066fb50de6c3c4630465f896609e8f412"
|
51
51
|
}
|