Skip to content

Commit 902c1f9

Browse files
authored
chore: add correct type exports (#435)
1 parent 963a858 commit 902c1f9

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Diff for: .changeset/old-emus-happen.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cube-dev/ui-kit': patch
3+
---
4+
5+
Add correct type exports to the published package.

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"exports": {
1010
".": {
1111
"import": "./dist/es/index.js",
12-
"require": "./dist/cjs/index.js"
12+
"require": "./dist/cjs/index.js",
13+
"types": "./dist/types/index.d.ts"
1314
}
1415
},
1516
"files": [

Diff for: scripts/copy-files.js

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ function copyPackageJson() {
4343
'.': {
4444
import: './es/index.js',
4545
require: './cjs/index.js',
46+
types: './types/index.d.ts',
4647
},
4748
},
4849
private: false,

Diff for: tsconfig.es.json

-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,5 @@
1212
"src/test/**/*",
1313
"src/**/*.test.tsx",
1414
"src/**/*.test.ts",
15-
"src/antd.js",
16-
"src/storybook.tsx",
17-
"src/App.tsx",
18-
"src/script.js"
1915
]
2016
}

0 commit comments

Comments
 (0)