chore: tweak wording for changelog message in stage-release script (#14374)

Also add a newline to the written package.json
This commit is contained in:
Jeremy Elbourn
2018-12-03 13:41:25 -08:00
committed by GitHub
parent 903a884e2d
commit db155e455e
+3 -3
View File
@@ -110,8 +110,8 @@ class StageReleaseTask {
console.log();
console.log(green(` ✓ Updated the changelog in ` +
`"${bold(CHANGELOG_FILE_NAME)}"`));
console.log(yellow(` ⚠ You can also make other unrelated modifications. After the ` +
`changes have been made, just continue here.`));
console.log(yellow(` ⚠ Please review CHANGELOG.md and ensure that the log contains only ` +
`changes that apply to the public library release. When done, proceed to the prompt below.`));
console.log();
const {shouldContinue} = await prompt<{shouldContinue: boolean}>({
@@ -175,7 +175,7 @@ class StageReleaseTask {
/** Updates the version of the project package.json and writes the changes to disk. */
private updatePackageJsonVersion(newVersionName: string) {
const newPackageJson = {...this.packageJson, version: newVersionName};
writeFileSync(this.packageJsonPath, JSON.stringify(newPackageJson, null, 2));
writeFileSync(this.packageJsonPath, JSON.stringify(newPackageJson, null, 2) + '\n');
}
/** Verifies that the latest commit of the current branch is passing all Github statuses. */