From 249f9a6bbf2a8f8f9fb547bba467440ef3eabdc2 Mon Sep 17 00:00:00 2001 From: Rico Suter Date: Tue, 26 Sep 2023 00:22:39 +0200 Subject: [PATCH] use full version for npm --- build/Build.Pack.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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