Skip to content

Commit db155e4

Browse files
authored
chore: tweak wording for changelog message in stage-release script (#14374)
Also add a newline to the written package.json
1 parent 903a884 commit db155e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/release/stage-release.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ class StageReleaseTask {
110110
console.log();
111111
console.log(green(` ✓ Updated the changelog in ` +
112112
`"${bold(CHANGELOG_FILE_NAME)}"`));
113-
console.log(yellow(` ⚠ You can also make other unrelated modifications. After the ` +
114-
`changes have been made, just continue here.`));
113+
console.log(yellow(` ⚠ Please review CHANGELOG.md and ensure that the log contains only ` +
114+
`changes that apply to the public library release. When done, proceed to the prompt below.`));
115115
console.log();
116116

117117
const {shouldContinue} = await prompt<{shouldContinue: boolean}>({
@@ -175,7 +175,7 @@ class StageReleaseTask {
175175
/** Updates the version of the project package.json and writes the changes to disk. */
176176
private updatePackageJsonVersion(newVersionName: string) {
177177
const newPackageJson = {...this.packageJson, version: newVersionName};
178-
writeFileSync(this.packageJsonPath, JSON.stringify(newPackageJson, null, 2));
178+
writeFileSync(this.packageJsonPath, JSON.stringify(newPackageJson, null, 2) + '\n');
179179
}
180180

181181
/** Verifies that the latest commit of the current branch is passing all Github statuses. */

0 commit comments

Comments
 (0)