chore: adjust tsconfig.json settings (#532)

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).
This commit is contained in:
Wojciech Maj 2024-07-17 11:19:03 +02:00 committed by GitHub
parent 85e556a1a9
commit 06e5872189
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -4,11 +4,11 @@
"baseUrl": ".",
"esModuleInterop": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"lib": ["ES2023"],
"module": "commonjs",
"module": "preserve",
"moduleResolution": "bundler",
"noEmit": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,