Skip to content

Commit 57e7091

Browse files
authored
Merge pull request #2 from Djaler/fix-fallback-to-git-tag-version
fix: fallback to git tag if no version in package file
2 parents f2e83bf + 7983f6e commit 57e7091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = async function standardVersion (argv) {
7373
}
7474
try {
7575
let version
76-
if (pkg) {
76+
if (pkg && pkg.version) {
7777
version = pkg.version
7878
} else if (args.gitTagFallback) {
7979
version = await latestSemverTag(args.tagPrefix)

0 commit comments

Comments
 (0)