Skip to content

Commit

Permalink
fix(script): 修复获取最新版本号错误
Browse files Browse the repository at this point in the history
  • Loading branch information
liuweiGL committed Jul 2, 2021
1 parent 5f3254e commit d4ce4c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/script/src/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit d4ce4c7

Please sign in to comment.