From fce969f347d61c28811492f25abc0148acf9fe12 Mon Sep 17 00:00:00 2001 From: hustcc Date: Tue, 24 Oct 2023 16:46:39 +0800 Subject: [PATCH] chore: move g2 to peerDependencies (#5) --- package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 028b620..faafbd6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@berryv/g2-rect", - "version": "0.1.0", + "version": "0.2.0", "description": "The lightweight React Component for @antv/g2.", "author": { "name": "pearmini", @@ -27,15 +27,17 @@ "prepublishOnly": "npm run build" }, "sideEffects": false, - "dependencies": { - "@antv/g2": "^5.0.22", + "peerDependencies": { + "@antv/g2": "^5.1.6", "react": "^18.2.0" }, "devDependencies": { "@antv/g-svg": "^1.10.14", + "@antv/g2": "^5.1.6", "@types/react": "^18.2.21", "@types/react-dom": "^18.2.7", "jsdom": "^22.1.0", + "react": "^18.2.0", "react-dom": "^18.2.0", "typescript": "^5.2.2", "vite": "^4.4.9"