From 2ff0a3fd3dfc7e354f2822d1c63238312dc1b9a4 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Tue, 29 Oct 2024 15:06:56 -0700 Subject: [PATCH] fix: prevent copying of the node_modules directory (#17331) 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\**" />