Skip to content

Commit

Permalink
Merge pull request #61 from ddunkin/node-bin
Browse files Browse the repository at this point in the history
Don't delete `node_modules/**/bin` when cleaning
  • Loading branch information
ddunkin authored May 9, 2024
2 parents ecb9941 + a92be29 commit 35e50c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>

<PropertyGroup>
<VersionPrefix>5.20.0</VersionPrefix>
<VersionPrefix>5.20.1</VersionPrefix>
<PackageValidationBaselineVersion>5.19.1</PackageValidationBaselineVersion>
<LangVersion>12.0</LangVersion>
<Nullable>enable</Nullable>
Expand Down
4 changes: 4 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes

## 5.20.1

* Don't delete `node_modules/**/bin` when cleaning.

## 5.20.0

* Add `Version` to `DotNetLocalTool`.
Expand Down
2 changes: 1 addition & 1 deletion src/Faithlife.Build/DotNetBuild.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 35e50c4

Please sign in to comment.