@vercel/build-utils 2.16.1-canary.3 → 2.16.1-canary.4
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.
@@ -1,8 +1,8 @@
|
|
1
1
|
import { NodeVersion } from '../types';
|
2
2
|
export declare function getLatestNodeVersion(): {
|
3
|
-
readonly major:
|
4
|
-
readonly range: "
|
5
|
-
readonly runtime: "
|
3
|
+
readonly major: 16;
|
4
|
+
readonly range: "16.x";
|
5
|
+
readonly runtime: "nodejs16.x";
|
6
6
|
};
|
7
7
|
export declare function getDiscontinuedNodeVersions(): NodeVersion[];
|
8
8
|
export declare function getSupportedNodeVersion(engineRange: string | undefined, isAuto?: boolean): Promise<NodeVersion>;
|
package/dist/fs/node-version.js
CHANGED
@@ -8,6 +8,7 @@ const semver_1 = require("semver");
|
|
8
8
|
const errors_1 = require("../errors");
|
9
9
|
const debug_1 = __importDefault(require("../debug"));
|
10
10
|
const allOptions = [
|
11
|
+
{ major: 16, range: '16.x', runtime: 'nodejs16.x' },
|
11
12
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
12
13
|
{ major: 12, range: '12.x', runtime: 'nodejs12.x' },
|
13
14
|
{
|
@@ -136,10 +136,6 @@ async function getNodeVersion(destPath, _nodeVersion, config = {}, meta = {}) {
|
|
136
136
|
const latest = node_version_1.getLatestNodeVersion();
|
137
137
|
return { ...latest, runtime: 'nodejs' };
|
138
138
|
}
|
139
|
-
if (process.env.ENABLE_EXPERIMENTAL_NODE16 === '1') {
|
140
|
-
console.warn('Warning: Using experimental Node.js 16.x due to ENABLE_EXPERIMENTAL_NODE16=1');
|
141
|
-
return { major: 16, range: '16.x', runtime: 'nodejs16.x' };
|
142
|
-
}
|
143
139
|
const { packageJson } = await scanParentDirs(destPath, true);
|
144
140
|
let { nodeVersion } = config;
|
145
141
|
let isAuto = true;
|
package/dist/index.js
CHANGED
@@ -34763,6 +34763,7 @@ const semver_1 = __webpack_require__(2879);
|
|
34763
34763
|
const errors_1 = __webpack_require__(3983);
|
34764
34764
|
const debug_1 = __importDefault(__webpack_require__(1868));
|
34765
34765
|
const allOptions = [
|
34766
|
+
{ major: 16, range: '16.x', runtime: 'nodejs16.x' },
|
34766
34767
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
34767
34768
|
{ major: 12, range: '12.x', runtime: 'nodejs12.x' },
|
34768
34769
|
{
|
@@ -35062,10 +35063,6 @@ async function getNodeVersion(destPath, _nodeVersion, config = {}, meta = {}) {
|
|
35062
35063
|
const latest = node_version_1.getLatestNodeVersion();
|
35063
35064
|
return { ...latest, runtime: 'nodejs' };
|
35064
35065
|
}
|
35065
|
-
if (process.env.ENABLE_EXPERIMENTAL_NODE16 === '1') {
|
35066
|
-
console.warn('Warning: Using experimental Node.js 16.x due to ENABLE_EXPERIMENTAL_NODE16=1');
|
35067
|
-
return { major: 16, range: '16.x', runtime: 'nodejs16.x' };
|
35068
|
-
}
|
35069
35066
|
const { packageJson } = await scanParentDirs(destPath, true);
|
35070
35067
|
let { nodeVersion } = config;
|
35071
35068
|
let isAuto = true;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/build-utils",
|
3
|
-
"version": "2.16.1-canary.
|
3
|
+
"version": "2.16.1-canary.4",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"types": "./dist/index.d.js",
|
@@ -49,5 +49,5 @@
|
|
49
49
|
"typescript": "4.3.4",
|
50
50
|
"yazl": "2.5.1"
|
51
51
|
},
|
52
|
-
"gitHead": "
|
52
|
+
"gitHead": "ec57654b5bb44bca26ed665ec68995cca0948825"
|
53
53
|
}
|