From 85cd4f0812e554e84d010bb2b33398ab0fafc474 Mon Sep 17 00:00:00 2001 From: Roger Chappel Date: Thu, 21 May 2026 06:54:00 +1000 Subject: [PATCH] perf: disable source maps to reduce published package size - Remove sourceMap from tsconfig to skip 9 .js.map files - Package drops from 52.0kB to 24.8kB (28 files vs 37) - Source maps are unnecessary for published CLI packages - All 37 tests pass after rebuild, smoke unchanged --- tsconfig.json | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 48ec7db..331853c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,13 +1,15 @@ { "compilerOptions": { "target": "ES2022", - "lib": ["ES2022"], + "lib": [ + "ES2022" + ], "module": "NodeNext", "moduleResolution": "NodeNext", "rootDir": ".", "outDir": "dist", "declaration": true, - "sourceMap": true, + "sourceMap": false, "strict": true, "noUncheckedIndexedAccess": true, "exactOptionalPropertyTypes": true, @@ -15,6 +17,12 @@ "forceConsistentCasingInFileNames": true, "skipLibCheck": true }, - "include": ["src/**/*.ts", "test/**/*.ts"], - "exclude": ["dist", "node_modules"] -} + "include": [ + "src/**/*.ts", + "test/**/*.ts" + ], + "exclude": [ + "dist", + "node_modules" + ] +} \ No newline at end of file