From 63eaf81252a3811fdfbb479f8e03f4e25d92e92c Mon Sep 17 00:00:00 2001 From: Kanad Gupta <8854718+kanadgupta@users.noreply.github.com> Date: Wed, 9 Aug 2023 17:07:59 -0500 Subject: [PATCH] chore: clean up tsconfig files (#854) * build: clean up tsconfig files * chore: try comparing test run times if alex is installed * Revert "chore: try comparing test run times if alex is installed" This reverts commit c62d11ae2eaad424aa3f9e87e67d6186e99e286c. * chore: bring in some additional properties derived from here: https://github.com/tsconfig/bases/blob/main/bases/node14.json --- __tests__/tsconfig.json | 8 -------- jest.config.js | 7 +------ tsconfig.json | 7 ++++--- 3 files changed, 5 insertions(+), 17 deletions(-) delete mode 100644 __tests__/tsconfig.json diff --git a/__tests__/tsconfig.json b/__tests__/tsconfig.json deleted file mode 100644 index f2edeb969..000000000 --- a/__tests__/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../tsconfig.json", - "compilerOptions": { - "module": "es6", - "moduleResolution": "node", - "noImplicitAny": false - } -} diff --git a/jest.config.js b/jest.config.js index 19119d954..9b4ce41e1 100644 --- a/jest.config.js +++ b/jest.config.js @@ -22,11 +22,6 @@ module.exports = { ], testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(js?|ts?)$', transform: { - '^.+\\.[tj]s$': [ - 'ts-jest', - { - tsconfig: '__tests__/tsconfig.json', - }, - ], + '^.+\\.[tj]s$': ['ts-jest'], }, }; diff --git a/tsconfig.json b/tsconfig.json index 5c5fb985a..0dcc300f1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,14 +5,15 @@ "downlevelIteration": true, "esModuleInterop": true, "experimentalDecorators": true, - "lib": ["es2020", "ES2021.Intl"], - "noImplicitAny": true, + "forceConsistentCasingInFileNames": true, + "lib": ["ES2020", "ES2021.Intl"], + "module": "CommonJS", "outDir": "dist/", "paths": { "editor": [".sink.d.ts"] }, "resolveJsonModule": true, - "target": "ES5" + "target": "ES2020" }, "include": ["./config/*.js", "./config/*.json", "./src/**/*"] }