From a56fc88b9121eb391205621e6647b06feb2dbaae Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Wed, 13 Dec 2023 21:40:14 +0700 Subject: [PATCH] build: audit TypeScript configuration (#132) * build(typescript): remove unnecessary compiler options * build(typescript): adjust style for value of `module` and `target` compiler options * build(typescript): use `node16` module instead of `nodenext` * build(typescript): enable `exactOptionalPropertyTypes` compiler option --- tsconfig.json | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 129488d..efec48a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,15 +1,12 @@ { "compilerOptions": { + "exactOptionalPropertyTypes": true, "strict": true, - "module": "NodeNext", - "moduleResolution": "NodeNext", + "module": "node16", "declaration": true, "outDir": "dist", "sourceMap": true, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "lib": ["ES2022"], - "target": "ES2022", + "target": "es2022", "skipLibCheck": true }, "include": ["src"]