Skip to content

Commit

Permalink
Merge pull request #945 from dotnet/revertNpmVersion
Browse files Browse the repository at this point in the history
Revert "Drop BuildMetadata from NPM package version"
  • Loading branch information
AArnott committed May 17, 2023
2 parents bc56096 + b36f1fe commit 2d32d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NerdBank.GitVersioning/VersionOracle.cs
Expand Up @@ -376,7 +376,7 @@ public IEnumerable<string> BuildMetadataWithCommitId
/// <summary>
/// Gets the version to use for NPM packages.
/// </summary>
public string NpmPackageVersion => $"{this.Version.ToStringSafe(3)}{this.PrereleaseVersion}";
public string NpmPackageVersion => this.SemVer2;

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

0 comments on commit 2d32d93

Please sign in to comment.