@vercel/build-utils 2.15.2-canary.3 → 2.15.2-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.
@@ -40,9 +40,6 @@ function getDiscontinuedNodeVersions() {
40
40
  exports.getDiscontinuedNodeVersions = getDiscontinuedNodeVersions;
41
41
  async function getSupportedNodeVersion(engineRange, isAuto = false) {
42
42
  let selection = getLatestNodeVersion();
43
- if (process.env.ENABLE_EXPERIMENTAL_NODE16 === '1') {
44
- return { major: 16, range: '16.x', runtime: 'nodejs16.x' };
45
- }
46
43
  if (engineRange) {
47
44
  const found = semver_1.validRange(engineRange) &&
48
45
  allOptions.some(o => {
@@ -136,6 +136,10 @@ 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
+ }
139
143
  const { packageJson } = await scanParentDirs(destPath, true);
140
144
  let { nodeVersion } = config;
141
145
  let isAuto = true;
package/dist/index.js CHANGED
@@ -34484,9 +34484,6 @@ function getDiscontinuedNodeVersions() {
34484
34484
  exports.getDiscontinuedNodeVersions = getDiscontinuedNodeVersions;
34485
34485
  async function getSupportedNodeVersion(engineRange, isAuto = false) {
34486
34486
  let selection = getLatestNodeVersion();
34487
- if (process.env.ENABLE_EXPERIMENTAL_NODE16 === '1') {
34488
- return { major: 16, range: '16.x', runtime: 'nodejs16.x' };
34489
- }
34490
34487
  if (engineRange) {
34491
34488
  const found = semver_1.validRange(engineRange) &&
34492
34489
  allOptions.some(o => {
@@ -34754,6 +34751,10 @@ async function getNodeVersion(destPath, _nodeVersion, config = {}, meta = {}) {
34754
34751
  const latest = node_version_1.getLatestNodeVersion();
34755
34752
  return { ...latest, runtime: 'nodejs' };
34756
34753
  }
34754
+ if (process.env.ENABLE_EXPERIMENTAL_NODE16 === '1') {
34755
+ console.warn('Warning: Using experimental Node.js 16.x due to ENABLE_EXPERIMENTAL_NODE16=1');
34756
+ return { major: 16, range: '16.x', runtime: 'nodejs16.x' };
34757
+ }
34757
34758
  const { packageJson } = await scanParentDirs(destPath, true);
34758
34759
  let { nodeVersion } = config;
34759
34760
  let isAuto = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "2.15.2-canary.3",
3
+ "version": "2.15.2-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.4.3"
51
51
  },
52
- "gitHead": "698b89a2ba83d98b5fa0773142e4f5df3a2c4a9a"
52
+ "gitHead": "466135cf84d0346294645251034ad6aaf89928b8"
53
53
  }