From be9f813ed95093efac0006d3c35e54e52e721a6e Mon Sep 17 00:00:00 2001 From: Sergey Slipchenko Date: Thu, 8 Feb 2024 10:58:13 +0400 Subject: [PATCH] chore: remove tsconfig.node.json --- .github/workflows/checks.yml | 1 - package.json | 2 +- tsconfig.json | 6 +++--- tsconfig.node.json | 20 -------------------- 4 files changed, 4 insertions(+), 25 deletions(-) delete mode 100644 tsconfig.node.json diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index f480858..a761119 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -16,6 +16,5 @@ jobs: - run: pnpm install --frozen-lockfile - run: pnpm run format:check - run: pnpm run lint - - run: pnpm run typecheck - run: pnpm run build - run: pnpm test diff --git a/package.json b/package.json index 52166fa..d140926 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "sideEffects": false, "files": [ "dist", + "!dist/**/*.spec.*", "src", "!src/**/*.spec.ts" ], @@ -25,7 +26,6 @@ "format": "prettier --write .", "format:check": "prettier --check .", "lint": "eslint --max-warnings 0 .", - "typecheck": "tsc -p tsconfig.node.json --noEmit", "test": "vitest", "build": "tsc" }, diff --git a/tsconfig.json b/tsconfig.json index 505c0e5..d3d1045 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,12 +1,11 @@ { - "files": ["src/index.ts"], - "exclude": ["src/**/*.spec.ts"], + "include": ["src"], "compilerOptions": { "declaration": true, "declarationMap": true, "forceConsistentCasingInFileNames": true, "isolatedModules": true, - "lib": ["esnext"], + "lib": ["dom", "dom.iterable", "esnext"], "module": "esnext", "moduleResolution": "bundler", "noErrorTruncation": true, @@ -16,6 +15,7 @@ "noUnusedLocals": true, "outDir": "dist", "resolveJsonModule": true, + "skipLibCheck": true, "sourceMap": true, "strict": true, "target": "esnext" diff --git a/tsconfig.node.json b/tsconfig.node.json deleted file mode 100644 index bd4c289..0000000 --- a/tsconfig.node.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "include": ["src/**/*.spec.ts"], - "compilerOptions": { - "forceConsistentCasingInFileNames": true, - "isolatedModules": true, - "lib": ["dom", "dom.iterable", "esnext"], - "module": "esnext", - "moduleResolution": "node", - "noErrorTruncation": true, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "outDir": "dist", - "resolveJsonModule": true, - "skipLibCheck": true, - "strict": true, - "target": "esnext" - } -}