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 usage with "module": "nodenext" #356

Merged
merged 2 commits into from
Feb 24, 2023
Merged

Fix usage with "module": "nodenext" #356

merged 2 commits into from
Feb 24, 2023

Conversation

Methuselah96
Copy link
Contributor

@Methuselah96 Methuselah96 commented Feb 24, 2023

Why

I was a little too hasty with #352 and didn't test it with "module": "nodenext". Turns out if you specify "type": "module" it expects all the imports to have extensions. DefinitelyTyped doesn't currently support this, but they are working on it. Until then, we should remove "type": "module".

This also resolves #336, since the exports field works when using "module": "nodenext".

What

Remove "type": "module" (reverting #352). Also add build/three.d.cts to match build/three.cjs.

Checklist

  • Checked the target branch (current goes master, next goes dev)
  • Added myself to contributors table
  • Ready to be merged

@Methuselah96 Methuselah96 merged commit d39ea62 into master Feb 24, 2023
@Methuselah96 Methuselah96 deleted the fix-node-next-use branch February 24, 2023 15:45
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.

three/addons alias
2 participants