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

fix(PackageJson): disallow undefined in exports #626

Conversation

privatenumber
Copy link
Sponsor Contributor

| 'react-native'
| 'default',
string
>;
Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can no longer use ExportCondition as the key type. However, the only requirement for an export condition is that it should be a string.

Keeping a list of common export conditions will only add to the maintenance workload, and provide little value for autocompletion, so I suggest removing it.

@sindresorhus sindresorhus merged commit dc38b70 into sindresorhus:main May 30, 2023
8 checks passed
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