Skip to content

Commit

Permalink
use full version for npm
Browse files Browse the repository at this point in the history
  • Loading branch information
RicoSuter committed Sep 25, 2023
1 parent 333c25c commit 249f9a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/Build.Pack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 249f9a6

Please sign in to comment.