Skip to content

Commit b97f204

Browse files
committed
chore: fix the post-changeset script
1 parent 8d0d7a1 commit b97f204

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/post-changeset.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ const fs = require('fs');
33
const generatedLogsCli = fs.readFileSync('./packages/cli/CHANGELOG.md').toString();
44
const [, logCli] = generatedLogsCli.split('\n## ', 2);
55

6-
const mainChangelog = fs.readFileSync('./docs/@v1/changelog.md').toString();
6+
const mainChangelog = fs.readFileSync('./docs/changelog.md').toString();
77
const [date] = new Date().toISOString().split('T');
88
const logWithDate = logCli.replace('\n', ` (${date})\n`);
99
const modifiedChangelog = mainChangelog.replace(
1010
'<!-- do-not-remove -->\n',
1111
'<!-- do-not-remove -->\n\n## ' + logWithDate
1212
);
1313

14-
fs.writeFileSync('./docs/@v1/changelog.md', modifiedChangelog);
14+
fs.writeFileSync('./docs/changelog.md', modifiedChangelog);

0 commit comments

Comments
 (0)