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';
5
5
import isGit from 'is-git-repository' ;
6
6
import getGitRemotes from 'get-git-remotes' ;
7
7
import getCommitRange from 'git-commit-range' ;
8
- import taggedCommit from 'tagged-git-commit' ;
8
+ import taggedCommits from 'tagged-git-commit' ;
9
9
import updateNotifier from 'update-notifier' ;
10
10
import yargs from 'yargs' ;
11
11
@@ -27,7 +27,8 @@ updateNotifier({ pkg }).notify();
27
27
28
28
const cli = ( ) => {
29
29
const cwd = process . cwd ( ) ;
30
- const latestTaggedCommit = taggedCommit ( { path : cwd } ) ;
30
+ const latestTaggedCommits = taggedCommits ( { path : cwd } ) ;
31
+ const latestTaggedCommit = latestTaggedCommits . length === 0 ? '' : latestTaggedCommits [ 0 ] ;
31
32
const commits = getCommitRange ( { path : cwd , from : latestTaggedCommit } ) ;
32
33
const latestVersion = getLatestVersion ( ) ;
33
34
const newVersions = generateVersions ( latestVersion ) ;
You can’t perform that action at this time.
0 commit comments