Skip to content

Commit 8d0e25c

Browse files
committed
fix typing generation
1 parent d2aa139 commit 8d0e25c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
"files": [
77
"dist/**"
88
],
9+
"types": "./dist/index.d.ts",
910
"repository": "shuding/cobe",
1011
"license": "MIT",
1112
"scripts": {
12-
"build:esm": "node scripts/build.js",
13+
"build:esm": "node scripts/build.js && cp src/index.d.ts dist/index.d.ts",
1314
"build": "yarn build:esm"
1415
},
1516
"dependencies": {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
"outDir": "dist",
1616
"rootDir": "src"
1717
},
18-
"exclude": ["**/*.test.ts"]
18+
"exclude": ["dist", "node_modules", "scripts"]
1919
}

0 commit comments

Comments
 (0)