Skip to content

Commit

Permalink
fix(script): fix read config.json error
Browse files Browse the repository at this point in the history
  • Loading branch information
liuweiGL committed Jul 2, 2021
1 parent e799550 commit bb227c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/script/src/changelog.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import path from 'path'
import fs from 'fs-extra'
import moment from 'moment'
import { compareTwoStrings } from 'string-similarity'
Expand Down Expand Up @@ -26,7 +27,7 @@ const CommitGroupBy: Array<[string, string[]]> = [
]

const getLatestVersion = () => {
return fs.readJsonSync('./config.json').version
return fs.readJsonSync(path.resolve(__dirname, './config.json')).version
}

const isPublishMessage = (str: string) => {
Expand Down

0 comments on commit bb227c7

Please sign in to comment.