Skip to content

Commit 541a8d0

Browse files
committed
fix: include TS types in bundle
1 parent 5bd30d6 commit 541a8d0

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"files": [
99
"lib/"
1010
],
11-
"main": "lib/",
11+
"main": "lib/index.js",
12+
"types": "lib/index.d.ts",
1213
"engines": {
1314
"node": ">=8"
1415
},

tsconfig.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
"module": "commonjs",
44
"moduleResolution": "node",
55
"jsx": "react",
6-
"noEmit": true,
6+
"declaration": true,
7+
"emitDeclarationOnly": true,
8+
"isolatedModules": true,
79
"noImplicitReturns": true,
810
"strict": true,
911
"esModuleInterop": true,
10-
"forceConsistentCasingInFileNames": true
12+
"forceConsistentCasingInFileNames": true,
13+
"outDir": "lib/"
1114
},
12-
"include": ["src/**/*"]
15+
"include": ["src/**/*"],
16+
"exclude": ["**/__tests__/**"]
1317
}

0 commit comments

Comments
 (0)