Skip to content

fix(deploy): include devDependencies in npm ci and increase health check timeout#458

Open
DebuggingMax wants to merge 1 commit intoShaerWare:mainfrom
DebuggingMax:fix/npm-ci-include-devdeps
Open

fix(deploy): include devDependencies in npm ci and increase health check timeout#458
DebuggingMax wants to merge 1 commit intoShaerWare:mainfrom
DebuggingMax:fix/npm-ci-include-devdeps

Conversation

@DebuggingMax
Copy link

Summary

This PR fixes issue #359 where npm ci --silent fails to install devDependencies when NODE_ENV=production is set in the environment.

Changes

  1. npm ci --include=dev: Explicitly include devDependencies to ensure vue-tsc and other build tools are installed
  2. Health check timeout: Increased from 5s to 20s to give the orchestrator sufficient startup time

Problem

When NODE_ENV=production is set, npm ci skips devDependencies. Since vue-tsc is listed in devDependencies but is required for the build step (npm run build), the deploy fails with:

sh: 1: vue-tsc: not found

Solution

Using npm ci --include=dev ensures devDependencies are always installed regardless of NODE_ENV.

Fixes #359

…eck timeout

- Change npm ci --silent to npm ci --include=dev to ensure vue-tsc and
  other devDependencies are installed (needed for build step)
- Increase health check sleep from 5s to 20s to allow orchestrator
  sufficient startup time

Fixes ShaerWare#359
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

deploy.sh: npm ci не устанавливает devDependencies (vue-tsc not found)

1 participant