From f3b535d9e19a7d22c3cb953f8f87d024e905af95 Mon Sep 17 00:00:00 2001 From: "raohai.rh" Date: Thu, 24 Feb 2022 18:05:41 +0800 Subject: [PATCH] fix: move react into peerDependencies --- package.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index eeb30c9..1e8d7b1 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,11 @@ { "name": "react-ansi", - "version": "3.0.0", + "version": "3.0.2", "description": "", "author": "RaoHai", "license": "MIT", "repository": "RaoHai/react-ansi", "main": "dist/index.js", - "module": "dist/index.esm.js", "typings": "dist/index.d.ts", "engines": { "node": ">=8", @@ -38,9 +37,12 @@ "anser": "^1.4.8", "escape-carriage": "^1.3.0", "immer": "^7.0.8", - "react": "^16.12.0 || ^17.0.0", "react-virtualized": "^9.22.3" }, + "peerDependencies": { + "react": "^15.0.0 || ^16.0.0 || ^17.0.0", + "react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0" + }, "files": [ "dist", "es" @@ -59,7 +61,6 @@ "gh-pages": "^3.0.0", "lint-staged": "^10.0.7", "prettier": "^2.2.1", - "react-dom": "^17.0.2", "yorkie": "^2.0.0" } }