From 770858c255e50717d61eac70f7c3cdb14480e665 Mon Sep 17 00:00:00 2001 From: Alex Macleod Date: Mon, 4 Oct 2021 14:23:03 +0100 Subject: [PATCH] Enable TypeScript declaration maps This allows go-to-definition to reach the original .ts files for consumers of the package. It emits .d.ts.map files alongside the regular .d.ts files e.g. in sdk.createClient go-to-definition on createClient will place the cursor at the function in src/matrix.ts rather than inside a definition file lib/matrix.d.ts Signed-off-by: Alex Macleod --- tsconfig-build.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tsconfig-build.json b/tsconfig-build.json index 2f59c9da8..42a4cf697 100644 --- a/tsconfig-build.json +++ b/tsconfig-build.json @@ -1,6 +1,7 @@ { "extends": "./tsconfig.json", "compilerOptions": { + "declarationMap": true, "sourceMap": true, "noEmit": false, "emitDecoratorMetadata": true,