git-tag-version
Advanced tools
Comparing version 1.3.1 to 1.4.0
{ | ||
"name": "git-tag-version", | ||
"description": "Calculate project version from git tags.", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"homepage": "https://github.com/bushee/git-tag-version", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -78,3 +78,3 @@ /* | ||
branchNameTrimmed = cp.execSync(getBranchName, {cwd: '.'}).toString().trim().replace(/[^0-9A-Za-z-]/g, '-'); | ||
if (branchNameTrimmed === 'master') { | ||
if (branchNameTrimmed === 'master' || branchNameTrimmed === 'main') { | ||
return versionPrefix + getSnapshotSuffix(); | ||
@@ -81,0 +81,0 @@ } |
11855