fix: add --force flag to npm ci for platform-specific dependencies

npm ci without --force rejects platform-specific packages like dmg-license
which is macOS-only. The --force flag tells npm to proceed even when
platform constraints are violated.

This allows Linux containers to skip dmg-license and continue with the
install, matching the behavior we want for Docker development.
This commit is contained in:
DhanushSantosh
2026-01-17 15:53:31 +05:30
parent 92afbeb6bd
commit ef6b9ac2d2
2 changed files with 4 additions and 2 deletions

View File

@@ -76,8 +76,9 @@ services:
- -c
- |
# Install as root to avoid permission issues with named volumes
# Use --force to skip platform-specific devDependencies (dmg-license is macOS-only)
echo 'Installing dependencies...' &&
npm ci --legacy-peer-deps &&
npm ci --legacy-peer-deps --force &&
echo 'Building shared packages...' &&
npm run build:packages &&