Skip to content

Commit

Permalink
🐛 fix: fix error when there is no changelog config
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Mar 12, 2021
1 parent 46d0915 commit 1ec76ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/changelog/src/customConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ export interface CustomConfig {

const explorer = cosmiconfigSync('changelog');

const { config } = explorer.search();
const { config } = explorer.search() || { config: {} };

export default config;

0 comments on commit 1ec76ee

Please sign in to comment.