Skip to content

Commit d6bfc0d

Browse files
committed
fix(scripts): "newChange" script does not add final newline
1 parent 7b5b557 commit d6bfc0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/newChange.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const contents: NewChange = {
5050
}
5151
const fileName = `${type}-${crypto.randomUUID()}.json`
5252
const path = join(directory, fileName)
53-
fs.writeFileSync(path, JSON.stringify(contents, undefined, '\t'))
53+
fs.writeFileSync(path, JSON.stringify(contents, undefined, '\t') + '\n')
5454

5555
console.log(`Change log written to ${path}`)
5656
child_process.execSync(`git add ${directory}`)

0 commit comments

Comments
 (0)