@vercel/build-utils 12.2.1 → 12.2.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/CHANGELOG.md +6 -0
- package/dist/fs/node-version.js +11 -1
- package/dist/index.js +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/fs/node-version.js
CHANGED
|
@@ -100,9 +100,19 @@ const BUN_VERSIONS = [
|
|
|
100
100
|
})
|
|
101
101
|
];
|
|
102
102
|
function getNodeVersionByMajor(major) {
|
|
103
|
-
return
|
|
103
|
+
return getOptions().find((v) => v.major === major);
|
|
104
104
|
}
|
|
105
105
|
function getOptions() {
|
|
106
|
+
if (process.env.VERCEL_ALLOW_NODEJS_24 === "1") {
|
|
107
|
+
return [
|
|
108
|
+
new import_types.NodeVersion({
|
|
109
|
+
major: 24,
|
|
110
|
+
range: "24.x",
|
|
111
|
+
runtime: "nodejs24.x"
|
|
112
|
+
}),
|
|
113
|
+
...NODE_VERSIONS
|
|
114
|
+
];
|
|
115
|
+
}
|
|
106
116
|
return NODE_VERSIONS;
|
|
107
117
|
}
|
|
108
118
|
function isNodeVersionAvailable(version) {
|
package/dist/index.js
CHANGED
|
@@ -23015,6 +23015,16 @@ var BUN_VERSIONS = [
|
|
|
23015
23015
|
})
|
|
23016
23016
|
];
|
|
23017
23017
|
function getOptions() {
|
|
23018
|
+
if (process.env.VERCEL_ALLOW_NODEJS_24 === "1") {
|
|
23019
|
+
return [
|
|
23020
|
+
new NodeVersion({
|
|
23021
|
+
major: 24,
|
|
23022
|
+
range: "24.x",
|
|
23023
|
+
runtime: "nodejs24.x"
|
|
23024
|
+
}),
|
|
23025
|
+
...NODE_VERSIONS
|
|
23026
|
+
];
|
|
23027
|
+
}
|
|
23018
23028
|
return NODE_VERSIONS;
|
|
23019
23029
|
}
|
|
23020
23030
|
function isNodeVersionAvailable(version) {
|