Skip to content

Commit 2d32d93

Browse files
authored
Merge pull request #945 from dotnet/revertNpmVersion
Revert "Drop BuildMetadata from NPM package version"
2 parents bc56096 + b36f1fe commit 2d32d93

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)