diff --git a/Directory.Build.props b/Directory.Build.props index b726efc..cbfba68 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,7 @@ - 5.20.0 + 5.20.1 5.19.1 12.0 enable diff --git a/ReleaseNotes.md b/ReleaseNotes.md index fff0f86..ebe8e7b 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,5 +1,9 @@ # Release Notes +## 5.20.1 + +* Don't delete `node_modules/**/bin` when cleaning. + ## 5.20.0 * Add `Version` to `DotNetLocalTool`. diff --git a/src/Faithlife.Build/DotNetBuild.cs b/src/Faithlife.Build/DotNetBuild.cs index b8d37a0..d09f1aa 100644 --- a/src/Faithlife.Build/DotNetBuild.cs +++ b/src/Faithlife.Build/DotNetBuild.cs @@ -56,7 +56,7 @@ public static void AddDotNetTargets(this BuildApp build, DotNetBuildSettings? se .Does(() => { var findDirectoriesToDelete = settings.CleanSettings?.FindDirectoriesToDelete ?? - (() => FindDirectories("{src,tests,tools}/**/{bin,obj}").Except(FindDirectories("tools/bin")).ToList()); + (() => FindDirectories("{src,tests,tools}/**/{bin,obj}").Except(FindDirectories("tools/bin", "**/node_modules/**/bin")).ToList()); foreach (var directoryToDelete in findDirectoriesToDelete()) DeleteDirectory(directoryToDelete);