File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -71768,7 +71768,7 @@ function translateArchToDistUrl(arch) {
71768
71768
}
71769
71769
}
71770
71770
function parseNodeVersionFile(contents) {
71771
- var _a, _b;
71771
+ var _a, _b, _c ;
71772
71772
let nodeVersion;
71773
71773
const found = contents.match(/^(?:nodejs\s+)?v?(?<version>[^\s]+)$/m);
71774
71774
nodeVersion = (_a = found === null || found === void 0 ? void 0 : found.groups) === null || _a === void 0 ? void 0 : _a.version;
@@ -71777,6 +71777,8 @@ function parseNodeVersionFile(contents) {
71777
71777
// Try parsing the file as an NPM `package.json`
71778
71778
// file.
71779
71779
nodeVersion = (_b = JSON.parse(contents).engines) === null || _b === void 0 ? void 0 : _b.node;
71780
+ if (!nodeVersion)
71781
+ (_c = JSON.parse(contents).volta) === null || _c === void 0 ? void 0 : _c.node;
71780
71782
if (!nodeVersion)
71781
71783
throw new Error();
71782
71784
}
You can’t perform that action at this time.
0 commit comments