From 91f789dcb21cf86bfa06b08dd8b9bbe7c4b15932 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Wed, 17 Jul 2024 00:44:39 +0200 Subject: [PATCH] chore: adjust tsconfig.json settings 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 411044337..6a6994834 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,