Skip to content

Commit

Permalink
gen-version: prettify source code (#3021)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Apr 4, 2021
1 parent 7707f85 commit 657605c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/gen-version.js
Expand Up @@ -11,7 +11,8 @@ if (!versionMatch) {

const [, major, minor, patch, preReleaseTag] = versionMatch;

const body = `/**
const body = `
/**
* Note: This file is autogenerated using "resources/gen-version.js" script and
* automatically updated by "npm version" command.
*/
Expand All @@ -33,5 +34,5 @@ export const versionInfo = Object.freeze({
`;

if (require.main === module) {
fs.writeFileSync('./src/version.js', body);
fs.writeFileSync('./src/version.js', body.trim() + '\n');
}

0 comments on commit 657605c

Please sign in to comment.