From a96734220ae586acc848cb7719a8630157b6cd90 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Thu, 27 Jun 2019 11:31:36 -0700 Subject: [PATCH 1/2] Use TS declarationMap This will make go to definition go to the implementation instead of the .d.ts file --- src/tsconfig-library-base.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tsconfig-library-base.json b/src/tsconfig-library-base.json index 66b61f09..7a9eedf3 100644 --- a/src/tsconfig-library-base.json +++ b/src/tsconfig-library-base.json @@ -2,6 +2,7 @@ "extends": "./tsconfig-base.json", "compilerOptions": { "composite": true, - "strict": true + "strict": true, + "declarationMap": true } } From 7f4e1a7e97308a432142561803de75a311649322 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Thu, 27 Jun 2019 11:39:20 -0700 Subject: [PATCH 2/2] Add explicit blacklist entry for .d.ts.map --- .npmignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.npmignore b/.npmignore index 13dc7b44..7ff2ec0e 100644 --- a/.npmignore +++ b/.npmignore @@ -36,6 +36,7 @@ !typings/*.d.ts # Blacklist - (normal behavior) these will override any whitelist +*.d.ts.map *.test.ts *.test.d.ts *.test.js