fix(deploy): install dev deps voor TypeScript-build, prune erna
`npm ci --omit=dev` voor `npx tsc` faalde omdat TypeScript in devDependencies zit. npx probeerde de typo-squatter `tsc@2.0.4` te installeren. Nu: volledige install → tsc → prune --omit=dev voor slanke runtime. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9fbc5220bd
commit
252e535f23
1 changed files with 5 additions and 2 deletions
|
|
@ -20,13 +20,16 @@ rsync -a --delete \
|
|||
--exclude=.git \
|
||||
"${REPO_DIR}/ops-agent/" "${INSTALL_DIR}/"
|
||||
|
||||
echo "==> Installing Node dependencies"
|
||||
echo "==> Installing Node dependencies (incl. dev for tsc)"
|
||||
cd "${INSTALL_DIR}"
|
||||
npm ci --omit=dev 2>/dev/null || npm install --omit=dev
|
||||
npm ci 2>/dev/null || npm install
|
||||
|
||||
echo "==> Building TypeScript"
|
||||
npx tsc
|
||||
|
||||
echo "==> Pruning dev dependencies"
|
||||
npm prune --omit=dev
|
||||
|
||||
chown -R ops-agent:ops-agent "${INSTALL_DIR}"
|
||||
|
||||
echo "==> Installing config dir"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue