Skip to content

Commit 06e5872

Browse files
authored
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).
1 parent 85e556a commit 06e5872

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"baseUrl": ".",
55
"esModuleInterop": true,
66
"experimentalDecorators": true,
7-
"moduleResolution": "node",
8-
"noEmit": true,
97
"forceConsistentCasingInFileNames": true,
108
"lib": ["ES2023"],
11-
"module": "commonjs",
9+
"module": "preserve",
10+
"moduleResolution": "bundler",
11+
"noEmit": true,
1212
"resolveJsonModule": true,
1313
"skipLibCheck": true,
1414
"strict": true,

0 commit comments

Comments
 (0)