From d1bca9f760ca46a270383359cdfecd23403b119a Mon Sep 17 00:00:00 2001 From: zhiqingchen <329604487@qq.com> Date: Thu, 2 Mar 2023 19:24:54 +0800 Subject: [PATCH] feat: export echarts --- package.json | 14 ++++++-------- src/index.tsx | 2 ++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 98365856c..9939f50e9 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 7e91cff88..3357c2341 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;