Skip to content

Commit b36f1fe

Browse files
committed
Revert "Drop BuildMetadata from NPM package version
" This reverts commit 5e1adb5. Fixes #943
1 parent 518ee61 commit b36f1fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NerdBank.GitVersioning/VersionOracle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ public IDictionary<string, string> CloudBuildVersionVars
376376
/// <summary>
377377
/// Gets the version to use for NPM packages.
378378
/// </summary>
379-
public string NpmPackageVersion => $"{this.Version.ToStringSafe(3)}{this.PrereleaseVersion}";
379+
public string NpmPackageVersion => this.SemVer2;
380380

381381
/// <summary>
382382
/// Gets a SemVer 1.0 compliant string that represents this version, including the -COMMITID suffix

0 commit comments

Comments
 (0)