From 8932a899047dbdf11a908c34b272e0d3ecba3944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Thu, 29 Feb 2024 17:19:31 +0800 Subject: [PATCH] chore: clean up --- .gitignore | 2 -- package.json | 20 ++++++-------------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index a9ad3482a1..9dca8e96f8 100644 --- a/.gitignore +++ b/.gitignore @@ -33,5 +33,3 @@ !.yarn/sdks !.yarn/versions .pnp.* -.node -package-lock.json diff --git a/package.json b/package.json index a5126445f9..b888de0996 100644 --- a/package.json +++ b/package.json @@ -60,9 +60,9 @@ "@types/jest-axe": "3.5.4", "@types/lodash": "^4.14.194", "@types/node": "^18.15.13", - "@types/react": "18", + "@types/react": "^18.0.38", "@types/react-beautiful-dnd": "^13.1.4", - "@types/react-dom": "18", + "@types/react-dom": "^18.0.11", "@types/react-helmet": "^6.1.6", "@types/react-is": "^17.0.3", "@types/react-virtualized": "^9.21.21", @@ -129,6 +129,10 @@ "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, + "resolutions": { + "@types/react": "18", + "@types/react-dom": "18" + }, "main": "./cjs/index.js", "module": "./es/index.js", "types": "./es/index.d.ts", @@ -154,17 +158,5 @@ "url": "git+https://github.com/ant-design/ant-design-mobile.git", "branch": "master", "platform": "github" - }, - "overrides": { - "@types/react": { - ".": "18" - }, - "@types/react-dom": { - ".": "18" - } - }, - "_resolutions": { - "@types/react": "18", - "@types/react-dom": "18" } }