mirror of
https://github.com/Luchexx/wacrm.git
synced 2026-11-02 17:29:45 +00:00
fix(i18n): pin @swc/helpers >=0.5.17 via overrides to satisfy npm ci
Next 16's package metadata is self-contradictory: it declares @swc/helpers@0.5.15 as a direct dependency, but also lists @swc/helpers >=0.5.17 as a (non-optional now) peer dependency. With only Next in the tree this slid by because the peer was marked optional, but next-intl pulls in @swc/core which has the same peer constraint without the optional flag. Local npm 11 auto-resolved the conflict by hoisting the higher version. CI runs npm 10 (bundled with Node 20 per .github/workflows/ ci.yml) and refused with `Missing: @swc/helpers@0.5.23 from lock file`. Adding @swc/helpers to the overrides block forces a single resolved version (0.5.23 — current latest matching ^0.5.17) across the tree. Verified locally with a clean `rm -rf node_modules && npm ci` plus the full CI pipeline (lint, typecheck, test, build). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8a8758a487
commit
fa5f3d51cc
6
package-lock.json
generated
6
package-lock.json
generated
@ -3033,9 +3033,9 @@
|
|||||||
"license": "Apache-2.0"
|
"license": "Apache-2.0"
|
||||||
},
|
},
|
||||||
"node_modules/@swc/helpers": {
|
"node_modules/@swc/helpers": {
|
||||||
"version": "0.5.15",
|
"version": "0.5.23",
|
||||||
"resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz",
|
"resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.23.tgz",
|
||||||
"integrity": "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==",
|
"integrity": "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.8.0"
|
"tslib": "^2.8.0"
|
||||||
|
|||||||
@ -78,6 +78,7 @@
|
|||||||
"postcss": "^8.5.10",
|
"postcss": "^8.5.10",
|
||||||
"ip-address": "^10.1.1",
|
"ip-address": "^10.1.1",
|
||||||
"fast-uri": "^3.1.2",
|
"fast-uri": "^3.1.2",
|
||||||
"hono": "^4.12.18"
|
"hono": "^4.12.18",
|
||||||
|
"@swc/helpers": "^0.5.17"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user