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

chore: adjust tsconfig.json settings #532

Merged
merged 1 commit into from
Jul 17, 2024
Merged

chore: adjust tsconfig.json settings #532

merged 1 commit into from
Jul 17, 2024

Conversation

wojtekmaj
Copy link
Contributor

@wojtekmaj wojtekmaj commented Jul 16, 2024

Now that we use Vitest (#349), tests won't go crazy because of this change.

Because Corepack is bundled with esbuild, the correct, recommended tsconfig.json settings are:

  • module: preserve
  • moduleResolution: bundler

This ensures that modules are resolved the way esbuild resolves them, and enables us to use e.g. package.json exports (which will come in #533).

Because Corepack is bundled with esbuild, the correct, recommended tsconfig.json settings are:
- module: preserve
- moduleResolution: bundler

This ensures that modules are resolved the way esbuild resolves them, and opens us to using e.g. package.json exports (which will come in handy in the next PR in which I update tar dependency).
@aduh95 aduh95 merged commit 06e5872 into nodejs:main Jul 17, 2024
12 of 13 checks passed
@wojtekmaj wojtekmaj deleted the proper-tsconfig branch July 17, 2024 13:12
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.

3 participants