From fc48cc64afe23bd36e3e49fbd980870a0be445fb Mon Sep 17 00:00:00 2001 From: John Colvin Date: Wed, 29 May 2024 17:18:26 +0000 Subject: [PATCH] fix build (webapp): Add --include=dev arg to npm install The apt repo finally updated npm from 8.X.X to 10.8.0. This broke the Spark.Admin.WebApp build because the new version doesn't install dev dependencies by default. --- src/Spark.Admin.WebApp/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Spark.Admin.WebApp/CMakeLists.txt b/src/Spark.Admin.WebApp/CMakeLists.txt index 3dcfe7330..3d7f978b5 100644 --- a/src/Spark.Admin.WebApp/CMakeLists.txt +++ b/src/Spark.Admin.WebApp/CMakeLists.txt @@ -70,7 +70,7 @@ update_deps_file("${_build_admin_web_app_deps}") function(npm_install path) add_custom_command( OUTPUT ${path}/package-lock.json - COMMAND "npm" ARGS "install" + COMMAND "npm" ARGS "install" "--include=dev" DEPENDS ${path}/package.json WORKING_DIRECTORY ${path} COMMENT "Run 'npm install' in ${path}")