Skip to content

Commit

Permalink
Add declaration maps
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Apr 30, 2024
1 parent edb81fc commit 88892ca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
coverage/
node_modules/
lib/**/*.d.ts
*.log
*.d.ts.map
*.d.ts
.DS_Store
decode-entity.d.ts
test.d.ts
yarn.lock

!/index.d.ts
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"types": "index.d.ts",
"files": [
"lib/",
"index.js",
"index.d.ts"
"index.d.ts",
"index.js"
],
"dependencies": {
"@types/unist": "^2.0.0",
Expand Down
7 changes: 4 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"include": ["**/**.js", "index.d.ts"],
"exclude": ["coverage", "node_modules"],
"compilerOptions": {
"checkJs": true,
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
Expand All @@ -12,5 +11,7 @@
"newLine": "lf",
"strict": true,
"target": "es2020"
}
},
"exclude": ["coverage", "node_modules"],
"include": ["**/**.js", "index.d.ts"]
}

0 comments on commit 88892ca

Please sign in to comment.