Skip to content

Commit 58f8e24

Browse files
committed
Omit demo and integration types from build, and specify correct types key in package.json
1 parent f9c56bd commit 58f8e24

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Accessible Accordion component for React",
55
"main": "dist/umd/index.js",
66
"jsnext:main": "dist/es/index.js",
7-
"types": "./lib/types/index.d.ts",
7+
"types": "dist/types/index.d.ts",
88
"scripts": {
99
"test": "jest",
1010
"test:integration": "yarn build:integration && yarn jest --config=integration/jest.config.js integration",

tsconfig.declaration.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"extends": "./tsconfig.json",
3-
"exclude": ["**/*.spec.ts", "**/*.spec.tsx"],
3+
"exclude": [
4+
"**/*.spec.ts",
5+
"**/*.spec.tsx",
6+
"demo/**/*",
7+
"integration/**/*"
8+
],
49
"compilerOptions": {
510
"noEmit": false,
611
"emitDeclarationOnly": true,

0 commit comments

Comments
 (0)