File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import isAdded from 'is-git-added';
55import isGit from 'is-git-repository' ;
66import getGitRemotes from 'get-git-remotes' ;
77import getCommitRange from 'git-commit-range' ;
8- import taggedCommit from 'tagged-git-commit' ;
8+ import taggedCommits from 'tagged-git-commit' ;
99import updateNotifier from 'update-notifier' ;
1010import yargs from 'yargs' ;
1111
@@ -27,7 +27,8 @@ updateNotifier({ pkg }).notify();
2727
2828const cli = ( ) => {
2929 const cwd = process . cwd ( ) ;
30- const latestTaggedCommit = taggedCommit ( { path : cwd } ) ;
30+ const latestTaggedCommits = taggedCommits ( { path : cwd } ) ;
31+ const latestTaggedCommit = latestTaggedCommits . length === 0 ? '' : latestTaggedCommits [ 0 ] ;
3132 const commits = getCommitRange ( { path : cwd , from : latestTaggedCommit } ) ;
3233 const latestVersion = getLatestVersion ( ) ;
3334 const newVersions = generateVersions ( latestVersion ) ;
You can’t perform that action at this time.
0 commit comments