Skip to content

Commit f6298db

Browse files
committed
feat: add build toolchain
1 parent 7dda942 commit f6298db

File tree

5 files changed

+420
-15
lines changed

5 files changed

+420
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ node_modules
77

88
dist/
99
storybook-static/
10+
fanciers-echarts-react-*.tgz

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
# @fanciers/echarts-react
2+
3+
> Using ECharts in React the Idiomatic Way, with Treeshaking Support! 🍃

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,27 @@
1313
"license": "MIT",
1414
"type": "module",
1515
"sideEffects": false,
16+
"files": [
17+
"dist"
18+
],
19+
"exports": {
20+
".": {
21+
"types": "./dist/index.d.ts",
22+
"default": "./dist/index.js"
23+
}
24+
},
25+
"typings": "./dist/index.d.ts",
1626
"scripts": {
1727
"dev": "storybook dev",
28+
"prepack": "tsdown",
1829
"lint": "tsc --noEmit"
1930
},
2031
"devDependencies": {
2132
"@rsbuild/core": "^1.4.15",
2233
"@rsbuild/plugin-react": "^1.3.5",
2334
"@storybook/addon-docs": "^9.1.2",
2435
"@storybook/react": "^9.1.2",
25-
"@types/node": "^24.2.1",
36+
"@types/node": "^24.3.0",
2637
"@types/react": "^19.1.10",
2738
"@types/react-dom": "^19.1.7",
2839
"echarts": "^6.0.0",
@@ -31,6 +42,7 @@
3142
"storybook": "^9.1.2",
3243
"storybook-react-rsbuild": "^2.0.4",
3344
"swr": "^2.3.6",
45+
"tsdown": "^0.14.1",
3446
"typescript": "^5.9.2"
3547
},
3648
"peerDependencies": {

0 commit comments

Comments
 (0)