Skip to content

Commit

Permalink
Generate a source map for the declaration file
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed Dec 13, 2020
1 parent 8926289 commit 5a78478
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

# Generated types
*.d.ts
*.d.ts.map

# Library specific ones
index.mjs
1 change: 1 addition & 0 deletions declaration.tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
],
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"noEmit": false,
"emitDeclarationOnly": true
}
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -109,4 +110,4 @@
"type-coverage": "^2.14.6",
"typescript": "^4.1.3"
}
}
}

0 comments on commit 5a78478

Please sign in to comment.