Use legacy-peer-deps when installing the SWC Linux binary in CI

The explicit @swc/core-linux-x64-gnu install re-resolved the tree and hit the pre-existing lucide-react/react-19 peer conflict that the lockfile was generated around. Add --legacy-peer-deps so the step matches the project's resolution and installs the binary.
This commit is contained in:
Maurice
2026-05-31 20:45:59 +02:00
parent 06fcfa29ac
commit 033f757c66
+1 -1
View File
@@ -58,7 +58,7 @@ jobs:
# (server/vitest.config.ts) can load.
run: |
SWC_VERSION=$(node -p "require('@swc/core/package.json').version")
npm install --no-save --no-package-lock "@swc/core-linux-x64-gnu@$SWC_VERSION"
npm install --no-save --no-package-lock --legacy-peer-deps "@swc/core-linux-x64-gnu@$SWC_VERSION"
- name: Build shared
run: npm run build --workspace=shared