Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gen-version: prettify source code #3021

Merged
merged 1 commit into from Apr 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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');
}