core icon indicating copy to clipboard operation
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

Open MajorLift opened this issue 1 year ago • 0 comments

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

MajorLift avatar Sep 13 '24 12:09 MajorLift