From dee2a9689c0019eed93a012121de369ad6bb0b58 Mon Sep 17 00:00:00 2001
From: Jef LeCompte <jeffreylec@gmail.com>
Date: Wed, 27 Jul 2022 14:26:16 -0700
Subject: [PATCH] chore: run build

---
 dist/setup/index.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dist/setup/index.js b/dist/setup/index.js
index 0a0c0ba..117dc50 100644
--- a/dist/setup/index.js
+++ b/dist/setup/index.js
@@ -71768,7 +71768,7 @@ function translateArchToDistUrl(arch) {
     }
 }
 function parseNodeVersionFile(contents) {
-    var _a, _b;
+    var _a, _b, _c;
     let nodeVersion;
     const found = contents.match(/^(?:nodejs\s+)?v?(?<version>[^\s]+)$/m);
     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) {
             // Try parsing the file as an NPM `package.json`
             // file.
             nodeVersion = (_b = JSON.parse(contents).engines) === null || _b === void 0 ? void 0 : _b.node;
+            if (!nodeVersion)
+                (_c = JSON.parse(contents).volta) === null || _c === void 0 ? void 0 : _c.node;
             if (!nodeVersion)
                 throw new Error();
         }