diff options
| -rw-r--r-- | package.json | 2 | ||||
| -rw-r--r-- | tsconfig.json | 20 | ||||
| -rw-r--r-- | tsconfig.legacy.json | 20 |
3 files changed, 39 insertions, 3 deletions
diff --git a/package.json b/package.json index 95ac294..64c4c06 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "typescript": "^5.0.0" }, "scripts": { - "typecheck": "tsc --noEmit", + "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.legacy.json", "prepublishOnly": "tsc --noEmit" }, "publishConfig": { diff --git a/tsconfig.json b/tsconfig.json index fb27021..0dfa85a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,15 +4,31 @@ "module": "ESNext", "moduleResolution": "bundler", "strict": true, + "noImplicitAny": true, + "strictNullChecks": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedIndexedAccess": true, + "exactOptionalPropertyTypes": true, + "noPropertyAccessFromIndexSignature": true, + "forceConsistentCasingInFileNames": true, "esModuleInterop": true, "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, "outDir": "./dist", "rootDir": "./src", "declaration": true, "declarationMap": true, "sourceMap": true }, - "include": ["src/**/*.ts"], + "include": [ + "src/util/**/*.ts", + "src/cdp/**/*.ts", + "src/client.ts", + "src/domains/**/*.ts", + "src/schemas/**/*.ts", + "src/registry.ts" + ], "exclude": ["node_modules", "dist"] } diff --git a/tsconfig.legacy.json b/tsconfig.legacy.json new file mode 100644 index 0000000..33c01aa --- /dev/null +++ b/tsconfig.legacy.json @@ -0,0 +1,20 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "noUnusedLocals": false, + "noUnusedParameters": false, + "noUncheckedIndexedAccess": false, + "exactOptionalPropertyTypes": false, + "noPropertyAccessFromIndexSignature": false + }, + "include": [ + "src/daemon.ts", + "src/tools.ts", + "src/index.ts", + "src/protocol.ts", + "src/renderers.ts", + "src/setup.ts", + "src/state.ts", + "src/prompt.ts" + ] +} |
