Skip to content

Commit

Permalink
Add TypeScript declaration map (#171)
Browse files Browse the repository at this point in the history
* Add declarationMap for lib
* Add schemas to tsconfigs
  • Loading branch information
sirreal authored Aug 16, 2023
1 parent 820e004 commit 2d3070e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ credentials*.json
.nyc_output
*.tsbuildinfo
*.d.ts
*.d.ts.map
*.d.mts
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"files": [],
"references": [{ "path": "./tsconfig.lib.json" }, { "path": "./tsconfig.test.json" }]
}
2 changes: 2 additions & 0 deletions tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": ["@tsconfig/strictest/tsconfig.json", "@tsconfig/node16/tsconfig.json"],
"compilerOptions": {
"composite": true,
"emitDeclarationOnly": true,
"declarationMap": true,
"rootDir": "lib",
"moduleResolution": "node16",
"types": ["node"],
Expand Down
1 change: 1 addition & 0 deletions tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": ["@tsconfig/strictest/tsconfig.json", "@tsconfig/node16/tsconfig.json"],
"compilerOptions": {
"noEmit": true,
Expand Down

0 comments on commit 2d3070e

Please sign in to comment.