Skip to content

Conversation

@SaifUrRehman2k
Copy link

@SaifUrRehman2k SaifUrRehman2k commented Nov 27, 2025

What's Changed

Manifest documentation mentions export without actually documenting

The exports field in package.json was mentioned in the manifest docs but not properly documented.
This made it unclear to users how to define entry points, conditional exports, or subpath exports.

Closes #6909
...

How did I fix it?

I added documentation for the exports field in the manifest schema.

  • Defined exports as the recommended way to describe package entry points.
  • Added examples for main entry ("."), subpaths ("./cli"), and conditional exports ("import", "require").
  • Updated the schema to allow both string and object values with patternProperties for flexibility.

...

Checklist

  • I have read the Contributing Guide.
  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] Manifest documentation mentions export without actually documenting it

1 participant