Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support condition object in PackageJson exports array #439

Merged
merged 2 commits into from Aug 22, 2022
Merged

Support condition object in PackageJson exports array #439

merged 2 commits into from Aug 22, 2022

Conversation

privatenumber
Copy link
Sponsor Contributor

Supporting condition objects in export arrays

{
  "name": "a-package",
  "exports": [
    { "condition": "./file-a" },
    "./file-b"
  ]
}

@sindresorhus sindresorhus merged commit 290e3a2 into sindresorhus:main Aug 22, 2022
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.

None yet

2 participants