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.
This commit is contained in:
John Colvin committed 2024-06-05 15:44:35 +00:00
1 parent 015d846941
commit fc48cc64af
1 file changed
+1 -1
+1 -1
View File
@@ -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}")