Skip to content

Commit 9b8fd49

Browse files
authored
chore: change antd from dependencies to peerDependencies (#11)
* chore: change antd from dependencies to peerDependencies * feat: optimize code
1 parent 77b9f34 commit 9b8fd49

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"@types/jest": "^26.0.15",
4343
"@types/react": "^16.8.19",
4444
"@types/react-dom": "^16.8.4",
45+
"antd": "^5.8.5",
4546
"cross-env": "^7.0.1",
4647
"dumi": "^2.1.0",
4748
"eslint": "^7.0.0",
@@ -58,14 +59,14 @@
5859
"@ant-design/cssinjs": "^1.8.1",
5960
"@babel/runtime": "^7.18.3",
6061
"@rc-component/portal": "^1.1.0",
61-
"antd": "^5.3.0",
6262
"classnames": "^2.3.2",
6363
"rc-align": "^4.0.0",
6464
"rc-motion": "^2.0.0",
6565
"rc-resize-observer": "^1.3.1",
6666
"rc-util": "^5.27.1"
6767
},
6868
"peerDependencies": {
69+
"antd": "^5.3.0",
6970
"react": ">=16.9.0",
7071
"react-dom": ">=16.9.0"
7172
},

tests/__snapshots__/index.test.tsx.snap

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)