From 4a5600851df7d6c1872bccd68e403931c5021984 Mon Sep 17 00:00:00 2001 From: jdalton Date: Fri, 17 Apr 2026 12:56:14 -0400 Subject: [PATCH] chore(tsconfig): explicit sourceMap and declarationMap: false MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set sourceMap: false and declarationMap: false explicitly on every tsconfig.json in the repo. Keys are fully alphanumerically sorted within each compilerOptions block. We never want to ship sourcemaps or declaration maps — making the flags explicit prevents accidental regression when someone edits a config and forgets to check inheritance. --- .claude/hooks/check-new-deps/tsconfig.json | 12 +++++++----- .config/tsconfig.check.json | 2 ++ .config/tsconfig.check.local.json | 4 +++- .config/tsconfig.dts.json | 5 +++-- tsconfig.json | 6 ++++-- 5 files changed, 19 insertions(+), 10 deletions(-) diff --git a/.claude/hooks/check-new-deps/tsconfig.json b/.claude/hooks/check-new-deps/tsconfig.json index 748e9587..53c5c847 100644 --- a/.claude/hooks/check-new-deps/tsconfig.json +++ b/.claude/hooks/check-new-deps/tsconfig.json @@ -1,13 +1,15 @@ { "compilerOptions": { - "noEmit": true, - "target": "esnext", + "declarationMap": false, + "erasableSyntaxOnly": true, "module": "nodenext", "moduleResolution": "nodenext", + "noEmit": true, "rewriteRelativeImportExtensions": true, - "erasableSyntaxOnly": true, - "verbatimModuleSyntax": true, + "skipLibCheck": true, + "sourceMap": false, "strict": true, - "skipLibCheck": true + "target": "esnext", + "verbatimModuleSyntax": true } } diff --git a/.config/tsconfig.check.json b/.config/tsconfig.check.json index f5cc328c..92fbca1e 100644 --- a/.config/tsconfig.check.json +++ b/.config/tsconfig.check.json @@ -1,10 +1,12 @@ { "extends": "./tsconfig.base.json", "compilerOptions": { + "declarationMap": false, "module": "esnext", "moduleResolution": "bundler", "noEmit": true, "skipLibCheck": true, + "sourceMap": false, "types": ["vitest/globals", "node"], "verbatimModuleSyntax": false }, diff --git a/.config/tsconfig.check.local.json b/.config/tsconfig.check.local.json index 7bd4f453..07b39bf8 100644 --- a/.config/tsconfig.check.local.json +++ b/.config/tsconfig.check.local.json @@ -1,6 +1,7 @@ { "extends": "./tsconfig.check.json", "compilerOptions": { + "declarationMap": false, "paths": { "@socketsecurity/lib": ["../../socket-lib/dist/index.d.ts"], "@socketsecurity/lib/*": ["../../socket-lib/dist/*"], @@ -8,6 +9,7 @@ "../../socket-registry/registry/dist/index.d.ts" ], "@socketsecurity/registry/*": ["../../socket-registry/registry/dist/*"] - } + }, + "sourceMap": false } } diff --git a/.config/tsconfig.dts.json b/.config/tsconfig.dts.json index 3f15fd96..a2e2d418 100644 --- a/.config/tsconfig.dts.json +++ b/.config/tsconfig.dts.json @@ -6,10 +6,11 @@ "emitDeclarationOnly": true, "module": "esnext", "moduleResolution": "bundler", + "noPropertyAccessFromIndexSignature": false, "outDir": "../dist", "rootDir": "../src", - "noPropertyAccessFromIndexSignature": false, - "skipLibCheck": true + "skipLibCheck": true, + "sourceMap": false }, "include": ["../src/**/*.ts", "../types/**/*.ts"] } diff --git a/tsconfig.json b/tsconfig.json index bb766a6e..cb6a1b15 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,12 +1,14 @@ { "extends": "./.config/tsconfig.base.json", "compilerOptions": { + "declarationMap": false, "module": "esnext", "moduleResolution": "bundler", + "noEmit": true, + "noPropertyAccessFromIndexSignature": false, "outDir": "./dist", "rootDir": "./src", - "noPropertyAccessFromIndexSignature": false, - "noEmit": true + "sourceMap": false }, "include": ["src/**/*.ts"] }