-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
refactor: move exports.types
to top
#29
Conversation
I've seen that but TS seemed to have no problem reading types for me. Not to mention, object keys inherently have no order. Is it actually breaking something for you? |
It is required when using Please read the reference I linked. The order in See also in Node's official document |
I noticed you actually added correct |
I've read it already and I even followed up here.
I don't know what you're talking about. Anyway, is it actually breaking something for you? (Also, please use the Edit Comment feature instead of commenting multiple times in a row.) |
See: It is required when using See also import-js/eslint-import-resolver-typescript#113
I referenced your previous commit 7d501be |
I'm wondering if you're just saying that because the docs say so, or if you're actually experiencing not getting types in a project. Please answer if it's actually breaking something for you. |
Yes, I start to use |
Any updates @JounQin ? |
I didn't spend much time on it, it's just spec. |
If you don't plan to investigate it, I will merge it as a I hope you do though because you said the types weren't working for you. |
That's fine, if I meet the error again, I'll post here. Personally, I think a change align to spec should trigger a release. Whatever, it doesn't matter. |
Prefer not to version bump if we don't know what the impact of the change is. |
types
field should always come firstexports.types
to top
I think you're right here now. Like microsoft/TypeScript#50067 and unplugin/unplugin-auto-import#243, I think we should prefer HDYT? |
Thanks for the insightful reference. I'll keep this in mind in future projects. I'm currently don't see a problem in |
That's great then! I'm also always preferring |
I updated the exports as per the recommendation of the TypeScript Issue you linked: |
🎉 This PR is included in version 4.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Reference: https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#package-json-exports-imports-and-self-referencing