Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit 07f382c

Browse files
committed
fix: add type declarations when building
1 parent 5a64183 commit 07f382c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"test": "jest",
2727
"test:coverage": "yarn test --coverage --colors",
2828
"prepare": "husky install && npm run build",
29-
"tsc:check": "tsc --noEmit",
29+
"tsc:check": "tsc",
3030
"prepublish": "tsc",
3131
"release": "semantic-release"
3232
},

tsconfig.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"noImplicitAny": true,
99
"jsx": "react",
1010
"allowSyntheticDefaultImports": true,
11+
"allowJs": true,
12+
"declaration": true,
13+
"emitDeclarationOnly": true,
14+
"noEmit": false,
1115
"outDir": "./dist",
1216
"removeComments": true,
1317
"sourceMap": true,
@@ -19,5 +23,5 @@
1923
}
2024
},
2125
"include": ["./src"],
22-
"exclude": ["node_modules", "dist"]
26+
"exclude": ["node_modules", "dist", "./src/__tests__"]
2327
}

0 commit comments

Comments
 (0)