Skip to content

Commit 8f0277a

Browse files
committed
Generate and expose a declaration file
So that TS projects can actually use our types.
1 parent 7cc3d02 commit 8f0277a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"author": "",
1818
"license": "MIT",
1919
"main": "dist/index.js",
20+
"types": "dist/index.d.ts",
2021
"files": [
2122
"dist"
2223
],

tsconfig.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
{
22
"compilerOptions": {
33
"module": "commonjs",
4+
"declaration": true,
45
"esModuleInterop": true,
56
"target": "es6",
67
"noImplicitAny": false,
78
"moduleResolution": "node",
89
"outDir": "dist",
9-
"baseUrl": ".",
10-
"paths": {
11-
"*": ["node_modules/*", "src/types/*"]
12-
}
10+
"baseUrl": "."
1311
},
1412
"include": ["src/**/*"]
1513
}

0 commit comments

Comments
 (0)