Skip to content

Commit 4e7ea8f

Browse files
authored
Merge pull request #7096 from valadas/package-json-major-minor-patch
Made package.json files to use only Major.Minor.Patch versioning
2 parents 68dd86b + 10b1aaa commit 4e7ea8f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Build/Tasks/SetPackageVersions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ public override void Run(Context context)
3232
// Set all package.json in Admin Experience to the current version and to consume the current (local) version of dnn-react-common.
3333
foreach (var file in packages)
3434
{
35-
context.Information($"Updating {file} to version {context.Version.SemVer}");
35+
context.Information($"Updating {file} to version {context.Version.MajorMinorPatch}");
3636
context.ReplaceRegexInFiles(
3737
file.ToString(),
3838
@"""version"": "".*""",
39-
$@"""version"": ""{context.Version.SemVer}""");
39+
$@"""version"": ""{context.Version.MajorMinorPatch}""");
4040
context.ReplaceRegexInFiles(
4141
file.ToString(),
4242
@"""@dnnsoftware\/dnn-react-common"": "".*""",
43-
$@"""@dnnsoftware/dnn-react-common"": ""{context.Version.SemVer}""");
43+
$@"""@dnnsoftware/dnn-react-common"": ""{context.Version.MajorMinorPatch}""");
4444
}
4545
}
4646
}

0 commit comments

Comments
 (0)