From a4ef9d4ba83d624912e27d6bbc392c9ec626d87d Mon Sep 17 00:00:00 2001 From: Scarriffle Date: Tue, 2 Jun 2026 21:10:00 +0200 Subject: [PATCH] installer: build with devDependencies (npm ci --include=dev) Fixes the tsc-not-found build error when NODE_ENV=production omits build tooling. Co-Authored-By: Claude Opus 4.8 --- deploy/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/install.sh b/deploy/install.sh index 7225727..c784a6d 100644 --- a/deploy/install.sh +++ b/deploy/install.sh @@ -43,7 +43,9 @@ fi echo "==> Building" cd "$INSTALL_DIR" -npm ci +# Build tooling (TypeScript/Vite) lives in devDependencies, so install those even when +# NODE_ENV=production is set in the environment. +npm ci --include=dev npm run build echo "==> Writing systemd unit /etc/systemd/system/$SERVICE.service"