core
core copied to clipboard
Add yarn constraints rules requiring that dual CJS/ESM builds and type declarations be exposed for all export subpaths in package manifests
Descriptions
- Adapt these rules so that they are applied to all subpath exports, not just
'exports["."]'. - Fix package manifests that violate the new rules.
- https://github.com/MetaMask/core/blob/main/packages/notification-services-controller/package.json
- https://github.com/MetaMask/core/blob/main/packages/profile-sync-controller/package.json
References
- Follow-up from https://github.com/MetaMask/core/pull/4648
- See https://github.com/MetaMask/core/pull/4648#discussion_r1758671441