From 06e587218968c614371b187cc5b193a64273dbf4 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Wed, 17 Jul 2024 11:19:03 +0200 Subject: [PATCH] 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). --- tsconfig.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 4110443..6a69948 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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,