From 38e9781fc52a9a607cc3cd53dfa8caef64b41a59 Mon Sep 17 00:00:00 2001
From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
Date: Tue, 29 Apr 2025 13:04:24 +0200
Subject: [PATCH] build: restores some of the behavior from V13 in relation to
StaticAssets (#19189)
In v13, the StaticAssets build was only triggered based on the existence of either the output folder or a preserve.* marker file. Here, we also additionally check for the node_modules/.package-lock.json file before reinstalling npm dependencies. We also now only run `npm install` rather than `npm ci` to optimise the build.
---
.../Umbraco.Cms.StaticAssets.csproj | 77 +++++++++++++++----
1 file changed, 62 insertions(+), 15 deletions(-)
diff --git a/src/Umbraco.Cms.StaticAssets/Umbraco.Cms.StaticAssets.csproj b/src/Umbraco.Cms.StaticAssets/Umbraco.Cms.StaticAssets.csproj
index d6fbf7ab37..3193533266 100644
--- a/src/Umbraco.Cms.StaticAssets/Umbraco.Cms.StaticAssets.csproj
+++ b/src/Umbraco.Cms.StaticAssets/Umbraco.Cms.StaticAssets.csproj
@@ -26,23 +26,36 @@
-
+
+
+
+
+
+
+
+
..\Umbraco.Web.UI.Client\
- wwwroot\umbraco\backoffice
+ $(ProjectDir)wwwroot\umbraco\backoffice
-
-
-
-
+
+
+
+
+
-
+
+
+
+
+
+
@@ -61,27 +74,46 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
..\Umbraco.Web.UI.Login\
- wwwroot\umbraco\login
+ $(ProjectDir)wwwroot\umbraco\login
-
-
-
-
+
+
+
+
+
+
-
+
-
+
@@ -99,4 +131,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+