From 5a784781d6b9167767851641737c6e24fc7323fc Mon Sep 17 00:00:00 2001 From: Pelle Wessman Date: Sun, 13 Dec 2020 18:59:55 +0100 Subject: [PATCH] Generate a source map for the declaration file --- .gitignore | 1 + declaration.tsconfig.json | 1 + package.json | 5 +++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 4c18567..869f9de 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ # Generated types *.d.ts +*.d.ts.map # Library specific ones index.mjs diff --git a/declaration.tsconfig.json b/declaration.tsconfig.json index f6fe2d3..1b62630 100644 --- a/declaration.tsconfig.json +++ b/declaration.tsconfig.json @@ -6,6 +6,7 @@ ], "compilerOptions": { "declaration": true, + "declarationMap": true, "noEmit": false, "emitDeclarationOnly": true } diff --git a/package.json b/package.json index d90fd8a..b7a08f2 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "files": [ "index.js", "index.mjs", - "index.d.ts" + "index.d.ts", + "index.d.ts.map" ], "scripts": { "build:0": "run-s clean", @@ -109,4 +110,4 @@ "type-coverage": "^2.14.6", "typescript": "^4.1.3" } -} +} \ No newline at end of file