From b7e7e62828f175d834f8d8c6c8eaeb9d9c29000b Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Tue, 22 Oct 2024 11:16:03 +0200 Subject: [PATCH] fix: prevent copying of the node_modules directory As noted in #16659, everything from `App_Plugins` is copied into the web output. This is unneeded and in the case of the `node_modules` directory unwanted behavior, these files are sources and not output that Umbracco needs to serve packages/extensions. The old behavior has led to many of the "path too long" errors we've been seeing while building extensions. --- .../buildTransitive/Umbraco.Cms.Targets.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Cms.Targets/buildTransitive/Umbraco.Cms.Targets.targets b/src/Umbraco.Cms.Targets/buildTransitive/Umbraco.Cms.Targets.targets index d8cf5f2a736a..407937735ac2 100644 --- a/src/Umbraco.Cms.Targets/buildTransitive/Umbraco.Cms.Targets.targets +++ b/src/Umbraco.Cms.Targets/buildTransitive/Umbraco.Cms.Targets.targets @@ -32,7 +32,7 @@ - <_AppPluginsFiles Include="App_Plugins\**" /> + <_AppPluginsFiles Include="App_Plugins\**" Exclude="App_Plugins\**\node_modules\**" />