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

Build ESM artifacts with Node16 moduleResolution #754

Merged
merged 1 commit into from
Mar 20, 2024
Merged

Conversation

smaye81
Copy link
Member

@smaye81 smaye81 commented Mar 19, 2024

Fixes #599

This switches all packages to build ESM artifacts with Node16 module resolution. In doing so, it turns on Node16 for both moduleResolution and module by default throughout the repo. It also turns on verbatimModuleSyntax by default (which is why the need for all the import type {...} changes).

For CJS artifacts, the exceptions for moduleResolution node10 and verbatimModuleSyntax false are now specified in the command script.

@smaye81 smaye81 requested a review from timostamm March 19, 2024 14:48
@smaye81 smaye81 changed the title Build with Node16 Build ESM artifacts with Node16 moduleResolution Mar 19, 2024
Copy link
Member

@timostamm timostamm left a comment

Choose a reason for hiding this comment

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

LGTM!

We can do the same for Connect, see connectrpc/connect-es#887

@smaye81 smaye81 merged commit a0ba45a into main Mar 20, 2024
8 checks passed
@smaye81 smaye81 deleted the sayers/node16 branch March 20, 2024 14:12
@timostamm timostamm mentioned this pull request Apr 22, 2024
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.

Build ESM artifacts with Node16 module resolution
2 participants