Skip to content

Commit

Permalink
Don't throw for --no.git
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Aug 15, 2021
1 parent 9dcc05c commit 3b1342f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ConventionalChangelog extends Plugin {
}

getInitialOptions(options, namespace) {
const { tagName } = options.git;
const tagName = options.git ? options.git.tagName : null;
options[namespace].tagPrefix = tagName ? tagName.replace(/v?\$\{version\}$/, '') : '';
return options[namespace];
}
Expand Down

0 comments on commit 3b1342f

Please sign in to comment.