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

Commit 771ad40

Browse files
committed
🔧 move the declaration generation to the build-types configuration
1 parent 21e82f9 commit 771ad40

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

tsconfig.build.json

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
22
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"declaration": true,
5+
"emitDeclarationOnly": true,
6+
"outDir": "./dist/types"
7+
},
38
"include": ["./src/index.js", "./src/@types"]
49
}

tsconfig.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
"esModuleInterop": true,
99
"allowJs": true,
1010
"checkJs": false,
11-
"jsx": "react",
12-
"declaration": true,
13-
"emitDeclarationOnly": true,
14-
"outDir": "./dist/types"
11+
"jsx": "react"
1512
},
1613
"include": ["./src"]
1714
}

0 commit comments

Comments
 (0)