https://github.com/ctison/bun-peer-deps
Bun peer deps resolution failure
https://github.com/ctison/bun-peer-deps
Last synced: 11 months ago
JSON representation
Bun peer deps resolution failure
- Host: GitHub
- URL: https://github.com/ctison/bun-peer-deps
- Owner: ctison
- Created: 2023-11-19T02:32:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-14T06:07:36.000Z (11 months ago)
- Last Synced: 2025-07-14T09:13:54.652Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Bun peer deps resolution failing
The CI of this repo will fail as long as Bun don't segregate the installation of dependencies (peer deps auto installed in this example).
Root pkg depends on:
- `pkg1` -> [`./apps/pkg1`](./apps/pkg1/package.json) which has `{"ethers": "5"}` as `peerDependencies`
- `pkg2` -> [`./apps/pkg2`](./apps/pkg2/package.json) which has `{"ethers": "6"}` as `peerDependencies`
The packages `pkg1` and `pkg2` use `ethers` in an incompatible way, because `pkg2` uses a breaking change from `ethers@v6`[^ethers-breaking-change].
[^ethers-breaking-change]: https://docs.ethers.org/v6/migrating/