Skip to content

Commit

Permalink
include ending newline when writing manifests from release.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
eritbh committed Mar 3, 2024
1 parent f6ba130 commit 9811589
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,27 @@ inquirer
manifestContentFirefox.version_name = `${answers.newVersion}: "${answers.newVersionName}"`;
manifestContentChrome.version_name = `${answers.newVersion}: "${answers.newVersionName}"`;

fs.writeFileSync(chromeManifestLocation, JSON.stringify(manifestContentChrome, null, 4), 'utf8', err => {
if (err) {
throw err;
}
});
fs.writeFileSync(firefoxManifestLocation, JSON.stringify(manifestContentFirefox, null, 4), 'utf8', err => {
if (err) {
throw err;
}
});
fs.writeFileSync(
chromeManifestLocation,
// include trailing newline
`${JSON.stringify(manifestContentChrome, null, 4)}\n`,
'utf8',
err => {
if (err) {
throw err;
}
},
);
fs.writeFileSync(
firefoxManifestLocation,
// include trailing newline
`${JSON.stringify(manifestContentFirefox, null, 4)}\n`,
'utf8',
err => {
if (err) {
throw err;
}
},
);
}
});

0 comments on commit 9811589

Please sign in to comment.