mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 21:23:07 +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
|
- -c
|
||||||
- |
|
- |
|
||||||
# Install as root to avoid permission issues with named volumes
|
# 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...' &&
|
echo 'Installing dependencies...' &&
|
||||||
npm ci --legacy-peer-deps &&
|
npm ci --legacy-peer-deps --force &&
|
||||||
echo 'Building shared packages...' &&
|
echo 'Building shared packages...' &&
|
||||||
npm run build:packages &&
|
npm run build:packages &&
|
||||||
|
|
||||||
|
|||||||
@@ -76,8 +76,9 @@ services:
|
|||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
# Install as root to avoid permission issues with named volumes
|
# 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...' &&
|
echo 'Installing dependencies...' &&
|
||||||
npm ci --legacy-peer-deps &&
|
npm ci --legacy-peer-deps --force &&
|
||||||
echo 'Building shared packages...' &&
|
echo 'Building shared packages...' &&
|
||||||
npm run build:packages &&
|
npm run build:packages &&
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user