Skip to content

Commit dee2a96

Browse files
committed
chore: run build
1 parent 57cec77 commit dee2a96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dist/setup/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71768,7 +71768,7 @@ function translateArchToDistUrl(arch) {
7176871768
}
7176971769
}
7177071770
function parseNodeVersionFile(contents) {
71771-
var _a, _b;
71771+
var _a, _b, _c;
7177271772
let nodeVersion;
7177371773
const found = contents.match(/^(?:nodejs\s+)?v?(?<version>[^\s]+)$/m);
7177471774
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) {
7177771777
// Try parsing the file as an NPM `package.json`
7177871778
// file.
7177971779
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;
7178071782
if (!nodeVersion)
7178171783
throw new Error();
7178271784
}

0 commit comments

Comments
 (0)