Skip to content

Commit

Permalink
Merge pull request #2 from Djaler/fix-fallback-to-git-tag-version
Browse files Browse the repository at this point in the history
fix: fallback to git tag if no version in package file
  • Loading branch information
TimothyJones authored May 25, 2022
2 parents f2e83bf + 7983f6e commit 57e7091
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 @@ -73,7 +73,7 @@ module.exports = async function standardVersion (argv) {
}
try {
let version
if (pkg) {
if (pkg && pkg.version) {
version = pkg.version
} else if (args.gitTagFallback) {
version = await latestSemverTag(args.tagPrefix)
Expand Down

0 comments on commit 57e7091

Please sign in to comment.