mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
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:
@@ -75,8 +75,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 &&
|
||||
|
||||
|
||||
Reference in New Issue
Block a user