diff --git a/package.json b/package.json index 98365856..9939f50e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@wuba/react-native-echarts", - "version": "1.3.0", + "version": "1.3.0-all.0", "description": "Echarts for react native.", "main": "lib/commonjs/index", "module": "lib/module/index", @@ -65,7 +65,6 @@ "@types/react-test-renderer": "^18.0.7", "commitlint": "^17.0.2", "del-cli": "^5.0.0", - "echarts": "^5.5.0", "eslint": "^8.4.1", "eslint-config-prettier": "^8.5.0", "eslint-plugin-prettier": "^4.0.0", @@ -81,17 +80,14 @@ "react-test-renderer": "^18.2.0", "release-it": "^15.0.0", "sharp": "^0.33.2", - "typescript": "^5.0.4", - "zrender": "^5.5.0" + "typescript": "^5.0.4" }, "peerDependencies": { "@shopify/react-native-skia": "*", - "echarts": "*", "react": "*", "react-native": "*", "react-native-gesture-handler": "*", - "react-native-svg": "*", - "zrender": "*" + "react-native-svg": "*" }, "engines": { "node": ">= 14.0.0" @@ -165,6 +161,8 @@ }, "dependencies": { "@xmldom/xmldom": "^0.8.6", - "entities": "^4.4.0" + "echarts": "^5.5.0", + "entities": "^4.4.0", + "zrender": "^5.5.0" } } diff --git a/src/index.tsx b/src/index.tsx index 7e91cff8..3357c234 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,4 +1,6 @@ +import * as _echarts from 'echarts/index'; export { default as SkiaChart } from './skiaChart'; export { default as SvgChart } from './svgChart'; export { SVGRenderer } from './SVGRenderer'; export * from './types'; +export const echarts = _echarts;