Skip to content

Commit 812f7e5

Browse files
committed
chore: add optional meta
1 parent f0bbacc commit 812f7e5

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

package.json

+15-6
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@
3737
"coverage": "father test --coverage",
3838
"now-build": "npm run build"
3939
},
40-
"optionalDependencies": {
41-
"date-fns": "2.x",
42-
"dayjs": "1.x",
43-
"moment": "^2.24.0"
44-
},
4540
"dependencies": {
4641
"@babel/runtime": "^7.10.1",
4742
"classnames": "^2.2.1",
@@ -84,6 +79,20 @@
8479
},
8580
"peerDependencies": {
8681
"react": ">=16.9.0",
87-
"react-dom": ">=16.9.0"
82+
"react-dom": ">=16.9.0",
83+
"date-fns": ">= 2.x",
84+
"dayjs": ">= 1.x",
85+
"moment": ">= 2.x"
86+
},
87+
"peerDependenciesMeta": {
88+
"date-fns": {
89+
"optional": true
90+
},
91+
"dayjs": {
92+
"optional": true
93+
},
94+
"moment": {
95+
"optional": true
96+
}
8897
}
8998
}

0 commit comments

Comments
 (0)