Skip to content

Commit 5a78478

Browse files
committed
Generate a source map for the declaration file
1 parent 8926289 commit 5a78478

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
# Generated types
1313
*.d.ts
14+
*.d.ts.map
1415

1516
# Library specific ones
1617
index.mjs

declaration.tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
],
77
"compilerOptions": {
88
"declaration": true,
9+
"declarationMap": true,
910
"noEmit": false,
1011
"emitDeclarationOnly": true
1112
}

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"files": [
1818
"index.js",
1919
"index.mjs",
20-
"index.d.ts"
20+
"index.d.ts",
21+
"index.d.ts.map"
2122
],
2223
"scripts": {
2324
"build:0": "run-s clean",
@@ -109,4 +110,4 @@
109110
"type-coverage": "^2.14.6",
110111
"typescript": "^4.1.3"
111112
}
112-
}
113+
}

0 commit comments

Comments
 (0)