diff --git a/packages/script/src/changelog.ts b/packages/script/src/changelog.ts index a62137a..3bf2999 100644 --- a/packages/script/src/changelog.ts +++ b/packages/script/src/changelog.ts @@ -26,7 +26,7 @@ const CommitGroupBy: Array<[string, string[]]> = [ ] const getLatestVersion = () => { - return require('./config.json').version + return fs.readJsonSync('./config.json').version } const isPublishMessage = (str: string) => {