Clarification on Peer Dependencies in `@effect/platform-node` Package
Insight on @effect/platform-node
package's peer dependencies
@effect/platform-nodeI discovered an interesting behavior related to the
@effect/platform-node package and its peer dependencies:Here's a snippet from the published package.json manifest:
As you can see, it lists
"@effect/cluster" as a peer dependency, which causes some package managers (particularly pnpm with autoInstallPeers = true, which is the default) to install it even when the @effect/cluster package isn't actually used in your project.Question
Does the@effect/platform-node package always require @effect/cluster?Potential Solution
If@effect/cluster is not always needed, a cleaner solution would be to use the peerDependenciesMeta field to mark it as optional:This would prevent package managers from automatically installing
@effect/cluster when it's not needed while still preserving compatibility for projects that do use it.WDYT?
