diff --git a/src/NerdBank.GitVersioning/VersionOracle.cs b/src/NerdBank.GitVersioning/VersionOracle.cs index c3d2160ae..8f43f8c5f 100644 --- a/src/NerdBank.GitVersioning/VersionOracle.cs +++ b/src/NerdBank.GitVersioning/VersionOracle.cs @@ -376,7 +376,7 @@ public IDictionary CloudBuildVersionVars /// /// Gets the version to use for NPM packages. /// - public string NpmPackageVersion => $"{this.Version.ToStringSafe(3)}{this.PrereleaseVersion}"; + public string NpmPackageVersion => this.SemVer2; /// /// Gets a SemVer 1.0 compliant string that represents this version, including the -COMMITID suffix