fix(deploy): use full npm ci in webhook-deploy to include devDeps for tsc build
npm ci --omit=dev excluded TypeScript (devDep) causing the build step to fail. Build needs devDeps; runtime doesn't because it runs compiled dist/. Co-Authored-By: Paperclip <[email protected]>
This commit is contained in:
1 parent
0e3a1afb3b
commit
0e27dd8359
1 file changed
+2
-2
@@ -39,7 +39,7 @@ git reset --hard origin/main
|
||||
if git diff --name-only "$LOCAL" "$REMOTE" | grep -q "^bridge/"; then
|
||||
log "Bridge changed — rebuilding..."
|
||||
cd "$APP_DIR/bridge"
|
||||
npm ci --omit=dev --silent
|
||||
npm ci --silent
|
||||
npm run build
|
||||
systemctl restart news-bridge
|
||||
log "Bridge restarted."
|
||||
@@ -49,7 +49,7 @@ fi
|
||||
if git diff --name-only "$LOCAL" "$REMOTE" | grep -q "^frontend/"; then
|
||||
log "Frontend changed — rebuilding..."
|
||||
cd "$APP_DIR/frontend"
|
||||
npm ci --omit=dev --silent
|
||||
npm ci --silent
|
||||
npm run build
|
||||
systemctl restart news-frontend
|
||||
log "Frontend restarted."
|
||||
|
||||
Reference in new issue
Block a user