bug: packageJson.exports.types
should be always be ordered first
#294
Labels
packageJson.exports.types
should be always be ordered first
#294
Failing Example:
More specifically,
Should be the first in the object as required by TypeScript.
according to publint.dev:EXPORTS_TYPES_SHOULD_BE_FIRST
Ensure types condition to be the first. The TypeScript docs recommends so, but it's also because the exports field is order-based.
For example, a scenario where both the types and import condition could be active, types should be first so that it matches and returns a .d.ts file, rather than a .js file from the import condition.
The text was updated successfully, but these errors were encountered: