From 90e7a0d23ce63b10f1450f03fd1372e4cbca1b42 Mon Sep 17 00:00:00 2001 From: Drew Hess Date: Sat, 26 Nov 2022 14:52:22 +0000 Subject: [PATCH] fix: Minor tsconfig.json fixes. Specifically: * This file is used for typechecking the entire project (as opposed to just the library portion, which is checked via a different tsconfig file), and generates no type declarations, so set `noEmit` to true (and remove command-line flag from script). * Remove `outDir`, since nothing is emitted when using this config. * Set `jsx` to "react-jsx" per recent versions of React. --- .gitignore | 1 - package.json | 2 +- tsconfig.json | 7 +++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 9fa5f5d..f563bbd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -lib/ module/ node_modules/ coverage/ diff --git a/package.json b/package.json index 549f9d6..f366593 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "build": "npm run build:wasm && vite build && tsc --project ./tsconfig.type.json", "doc": "typedoc src/index.ts", "release": "npm run build && commit-and-tag-version", - "typecheck": "tsc --noEmit", + "typecheck": "tsc", "storybook": "start-storybook -p 6006", "build-storybook": "build-storybook", "bench:wasm": "node --expose-gc test/benchmark.mjs" diff --git a/tsconfig.json b/tsconfig.json index 9bb9904..0431ed3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,12 +13,11 @@ "resolveJsonModule": true, "isolatedModules": true, "strictNullChecks": true, - "noEmit": false, - "jsx": "preserve", + "noEmit": true, + "jsx": "react-jsx", "downlevelIteration": true, "rootDir": "./src", - "preserveSymlinks": true, - "outDir": "lib/" + "preserveSymlinks": true }, "include": ["src"] }