From 0ed558f24d057ca349bc5b2353690c45c859a160 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 4c93f198..6af83f38 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@wuba/react-native-echarts", - "version": "2.0.0", + "version": "2.0.0-all.1", "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": "^19.3.0", "del-cli": "^5.0.0", - "echarts": "^5.5.0", "eslint": "^8.2.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.3", @@ -81,17 +80,14 @@ "react-test-renderer": "^18.3.1", "release-it": "^17.2.1", "sharp": "^0.33.5", - "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 dbb83978..ee8ba15a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,3 +1,5 @@ +import * as _echarts from 'echarts/index'; export { default as SkiaChart, SkiaRenderer } from './skia/skiaChart'; export { default as SvgChart, SVGRenderer } from './svg/svgChart'; export * from './types'; +export const echarts = _echarts;