Skip to content

Commit ae59216

Browse files
authored
feat: explicitly peer deep deps (#156)
feat(bundling): move flatpickr, react-select, react-textarea-autosize, react-virtualized and styled-components to peer dependencies.
1 parent 233c900 commit ae59216

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

package.json

+11-6
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
"common-tags": "1.8.0",
5858
"dom-helpers": "3.3.1",
5959
"downshift": "2.2.3",
60-
"flatpickr": "4.5.2",
6160
"tiny-invariant": "1.0.1",
6261
"is-touch-device": "1.0.1",
6362
"lodash.flatmap": "4.5.0",
@@ -70,11 +69,7 @@
7069
"lodash.without": "4.4.0",
7170
"prop-types": "15.6.2",
7271
"react-required-if": "1.0.3",
73-
"react-select": "2.1.0",
74-
"react-textarea-autosize": "7.0.4",
75-
"react-virtualized": "9.20.1",
7672
"recompose": "0.30.0",
77-
"styled-components": "3.4.9",
7873
"warning": "4.0.2"
7974
},
8075
"devDependencies": {
@@ -104,6 +99,7 @@
10499
"css-loader": "1.0.0",
105100
"enzyme": "3.7.0",
106101
"eslint": "5.3.0",
102+
"flatpickr": "4.5.2",
107103
"formik": "1.3.1",
108104
"glob": "7.1.3",
109105
"graphql": "14.0.2",
@@ -142,8 +138,11 @@
142138
"react-dom": "16.5.2",
143139
"react-intl": "2.7.0",
144140
"react-router-dom": "4.3.1",
141+
"react-select": "2.1.0",
145142
"react-testing-library": "5.1.1",
143+
"react-textarea-autosize": "7.0.4",
146144
"react-value": "0.2.0",
145+
"react-virtualized": "9.20.1",
147146
"rimraf": "2.6.2",
148147
"rollup": "0.66.4",
149148
"rollup-plugin-babel": "4.0.3",
@@ -159,19 +158,25 @@
159158
"shelljs": "0.8.2",
160159
"storybook-readme": "4.0.0-beta1",
161160
"style-loader": "0.23.0",
161+
"styled-components": "3.4.9",
162162
"stylelint": "9.6.0",
163163
"stylelint-config-standard": "18.2.0",
164164
"stylelint-order": "1.0.0",
165165
"url-loader": "1.1.1",
166166
"webpack": "4.20.2"
167167
},
168168
"peerDependencies": {
169+
"flatpickr": ">4.5.0",
169170
"moment": ">2.2",
170171
"moment-timezone": "^0.5",
171172
"react": ">=16",
172173
"react-dom": ">=16",
173174
"react-intl": ">=2",
174-
"react-router-dom": ">=4"
175+
"react-router-dom": ">=4",
176+
"react-select": ">2.1.0",
177+
"react-textarea-autosize": ">7.0.0",
178+
"react-virtualized": ">9.0.0",
179+
"styled-components": ">3.4.0"
175180
},
176181
"husky": {
177182
"hooks": {

rollup.config.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,10 @@ const plugins = [
5252
resolve(),
5353
// For shimming nodejs builtins
5454
builtins(),
55-
// To automatically externalize `dependencies` and `peerDependencies`
55+
// To automatically externalize `peerDependencies`
5656
// so that they do not end up in the bundle.
5757
// See also https://medium.com/@kelin2025/so-you-wanna-use-es6-modules-714f48b3a953
58-
peerDepsExternal({
59-
includeDependencies: true,
60-
}),
58+
peerDepsExternal(),
6159
// Transpile sources using our custom babel preset.
6260
babel({
6361
exclude: ['node_modules/**'],

0 commit comments

Comments
 (0)