From b66058b059ef929c72d19b49b3321eb1f0741bd4 Mon Sep 17 00:00:00 2001 From: Vladimir Safonkin Date: Mon, 30 Aug 2021 17:35:17 +0300 Subject: [PATCH] Build index.js --- dist/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index a9c4d74..f510d10 100644 --- a/dist/index.js +++ b/dist/index.js @@ -7853,16 +7853,14 @@ function run() { } exports.run = run; function getVersionFromGlobalJson(globalJsonPath) { - var _a; - const optionValues = ['latestFeature', 'latestPatch']; let version = ''; const globalJson = JSON.parse( // .trim() is necessary to strip BOM https://github.com/nodejs/node/issues/20649 fs.readFileSync(globalJsonPath, { encoding: 'utf8' }).trim()); if (globalJson.sdk && globalJson.sdk.version) { version = globalJson.sdk.version; - const rollForward = (_a = globalJson.sdk.rollForward) !== null && _a !== void 0 ? _a : ''; - if (optionValues.includes(rollForward)) { + const rollForward = globalJson.sdk.rollForward; + if (rollForward && rollForward === 'latestFeature') { const [major, minor] = version.split('.'); version = `${major}.${minor}`; }