@vercel/build-utils 5.5.7 → 5.5.9
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/fs/node-version.js
CHANGED
@@ -9,6 +9,7 @@ const errors_1 = require("../errors");
|
|
9
9
|
const debug_1 = __importDefault(require("../debug"));
|
10
10
|
function getOptions() {
|
11
11
|
const options = [
|
12
|
+
{ major: 18, range: '18.x', runtime: 'nodejs18.x' },
|
12
13
|
{ major: 16, range: '16.x', runtime: 'nodejs16.x' },
|
13
14
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
14
15
|
{
|
@@ -30,12 +31,6 @@ function getOptions() {
|
|
30
31
|
discontinueDate: new Date('2020-01-06'),
|
31
32
|
},
|
32
33
|
];
|
33
|
-
if (process.env.VERCEL_ALLOW_NODEJS18 === '1') {
|
34
|
-
return [
|
35
|
-
{ major: 18, range: '18.x', runtime: 'nodejs18.x' },
|
36
|
-
...options,
|
37
|
-
];
|
38
|
-
}
|
39
34
|
return options;
|
40
35
|
}
|
41
36
|
function getHint(isAuto = false) {
|
@@ -338,7 +338,7 @@ async function runNpmInstall(destPath, args = [], spawnOpts, meta, nodeVersion)
|
|
338
338
|
try {
|
339
339
|
await spawnAsync(cliType, commandArgs, opts);
|
340
340
|
}
|
341
|
-
catch (
|
341
|
+
catch (err) {
|
342
342
|
const potentialErrorPath = path_1.default.join(process.env.HOME || '/', '.npm', 'eresolve-report.txt');
|
343
343
|
if (isPotentiallyBrokenNpm &&
|
344
344
|
!commandArgs.includes('--legacy-peer-deps') &&
|
@@ -347,6 +347,9 @@ async function runNpmInstall(destPath, args = [], spawnOpts, meta, nodeVersion)
|
|
347
347
|
commandArgs.push('--legacy-peer-deps');
|
348
348
|
await spawnAsync(cliType, commandArgs, opts);
|
349
349
|
}
|
350
|
+
else {
|
351
|
+
throw err;
|
352
|
+
}
|
350
353
|
}
|
351
354
|
debug_1.default(`Install complete [${Date.now() - installTime}ms]`);
|
352
355
|
return true;
|
package/dist/index.js
CHANGED
@@ -30708,6 +30708,7 @@ const errors_1 = __webpack_require__(3983);
|
|
30708
30708
|
const debug_1 = __importDefault(__webpack_require__(1868));
|
30709
30709
|
function getOptions() {
|
30710
30710
|
const options = [
|
30711
|
+
{ major: 18, range: '18.x', runtime: 'nodejs18.x' },
|
30711
30712
|
{ major: 16, range: '16.x', runtime: 'nodejs16.x' },
|
30712
30713
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
30713
30714
|
{
|
@@ -30729,12 +30730,6 @@ function getOptions() {
|
|
30729
30730
|
discontinueDate: new Date('2020-01-06'),
|
30730
30731
|
},
|
30731
30732
|
];
|
30732
|
-
if (process.env.VERCEL_ALLOW_NODEJS18 === '1') {
|
30733
|
-
return [
|
30734
|
-
{ major: 18, range: '18.x', runtime: 'nodejs18.x' },
|
30735
|
-
...options,
|
30736
|
-
];
|
30737
|
-
}
|
30738
30733
|
return options;
|
30739
30734
|
}
|
30740
30735
|
function getHint(isAuto = false) {
|
@@ -31222,7 +31217,7 @@ async function runNpmInstall(destPath, args = [], spawnOpts, meta, nodeVersion)
|
|
31222
31217
|
try {
|
31223
31218
|
await spawnAsync(cliType, commandArgs, opts);
|
31224
31219
|
}
|
31225
|
-
catch (
|
31220
|
+
catch (err) {
|
31226
31221
|
const potentialErrorPath = path_1.default.join(process.env.HOME || '/', '.npm', 'eresolve-report.txt');
|
31227
31222
|
if (isPotentiallyBrokenNpm &&
|
31228
31223
|
!commandArgs.includes('--legacy-peer-deps') &&
|
@@ -31231,6 +31226,9 @@ async function runNpmInstall(destPath, args = [], spawnOpts, meta, nodeVersion)
|
|
31231
31226
|
commandArgs.push('--legacy-peer-deps');
|
31232
31227
|
await spawnAsync(cliType, commandArgs, opts);
|
31233
31228
|
}
|
31229
|
+
else {
|
31230
|
+
throw err;
|
31231
|
+
}
|
31234
31232
|
}
|
31235
31233
|
debug_1.default(`Install complete [${Date.now() - installTime}ms]`);
|
31236
31234
|
return true;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/build-utils",
|
3
|
-
"version": "5.5.
|
3
|
+
"version": "5.5.9",
|
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": "7003531d5db7895fc3b2fa940c2d83b6e75bbd9e"
|
51
51
|
}
|