Skip to content

Commit d66929a

Browse files
committed
check if changelofDir is not null
1 parent dc13ff9 commit d66929a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/changelog.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class Changelog {
1818
})
1919

2020
const changelogDir: string = path.parse(this.settings.changelogFilePath).dir
21-
if (!fs.existsSync(changelogDir)) {
21+
if (!fs.existsSync(changelogDir) && Boolean(changelogDir)){
2222
fs.mkdirSync(changelogDir)
2323
}
2424

0 commit comments

Comments
 (0)