Skip to content

Commit 72331d1

Browse files
committed
chore: fix post-release scripts
1 parent 1c7dfca commit 72331d1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/post-changeset.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
const fs = require('fs');
1+
import fs from 'fs';
22

33
const generatedLogsCli = fs.readFileSync('./packages/cli/CHANGELOG.md').toString();
44
const [, logCli] = generatedLogsCli.split('\n## ', 2);
55

6-
const mainChangelog = fs.readFileSync('./docs/changelog.md').toString();
6+
const mainChangelog = fs.readFileSync('./docs/@v2/changelog.md').toString();
77
const [date] = new Date().toISOString().split('T');
88
const logWithDate = logCli.replace('\n', ` (${date})\n`);
99
const modifiedChangelog = mainChangelog.replace(

scripts/write-release-message.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const fs = require('fs');
2-
const slackifyMarkdown = require('slackify-markdown');
1+
import fs from 'fs';
2+
import slackifyMarkdown from 'slackify-markdown';
33

44
const generatedLogsCli = fs.readFileSync('./packages/cli/CHANGELOG.md').toString();
55
const [, logCli] = generatedLogsCli.split('\n## ', 2);

0 commit comments

Comments
 (0)