Skip to content

Commit

Permalink
build dist/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Dolin committed Apr 28, 2021
1 parent bd485b6 commit 34c59b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dist/index.js
Expand Up @@ -7829,7 +7829,9 @@ function run() {
core.debug('No version found, trying to find version from global.json');
const globalJsonPath = path.join(process.cwd(), 'global.json');
if (fs.existsSync(globalJsonPath)) {
const globalJson = JSON.parse(fs.readFileSync(globalJsonPath, { encoding: 'utf8' }));
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;
}
Expand Down

0 comments on commit 34c59b7

Please sign in to comment.