diff --git a/build/Build.Pack.cs b/build/Build.Pack.cs index e10de80e0..18ecfd1a3 100644 --- a/build/Build.Pack.cs +++ b/build/Build.Pack.cs @@ -123,7 +123,7 @@ public partial class Build // patch npm version var npmPackagesFile = SourceDirectory / "NSwag.Npm" / "package.json"; content = TextTasks.ReadAllText(npmPackagesFile); - content = Regex.Replace(content, @"""version"": "".*""", @"""version"": """ + VersionPrefix + @""""); + content = Regex.Replace(content, @"""version"": "".*""", @"""version"": """ + nugetVersion + @""""); TextTasks.WriteAllText(npmPackagesFile, content); // ZIP directories