From 1efde5d799dec5cb4351c3d4b4dd73199be007f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurens=20St=C3=B6tzel?= Date: Wed, 22 Apr 2026 09:13:26 +0200 Subject: [PATCH] build: emit sourcemaps for CJS and ESM builds Enable sourceMap, declarationMap, and inlineSources in the shared tsconfig so both build flavors emit .js.map and .d.ts.map files with TypeScript sources embedded. Maps ship automatically via the existing files: ["dist"] entry in package.json, giving consumers readable stack traces pointing at src/*.ts. Co-Authored-By: Claude Opus 4.7 (1M context) --- tsconfig.base.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tsconfig.base.json b/tsconfig.base.json index 606c89b..4aa63cb 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -12,7 +12,10 @@ "noEmitOnError": true, "noImplicitAny": true, "noImplicitReturns": true, - "declaration": true + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "inlineSources": true }, "include": [ "./src/**/*"