Closed quantizor closed 4 months ago
I'm afraid that this change is breaking. Example: https://github.com/kachkaev/njt/pull/549
If something is a peer dependency, not a dependency, builds would fail if the dependency is not mentioned in downstream package.json
. So if we want to make something a peer dependency, I guess that a new version needs to be semver-major. A migration guide should list dependencies that need to be added to the app’s package.json
.
I added optional status (via peerDependenciesMeta
, an official package.json field in the npm docs) to all of them except react itself, is the build tooling not taking that into account?
It's odd because I tested it in pnpm and resolution worked as expected... will roll the change back.
Thanks for reverting! App build in https://github.com/kachkaev/njt/pull/549 worked after upgrading styled-components
from from 6.1.7 to 6.1.8 👍
This allows for better deduping in client projects.
Might fix #4226