Skip to content

Commit ffca5df

Browse files
committed
build: declare CSS and React components as dependencies, not devDependencies
1 parent a7d23c9 commit ffca5df

File tree

25 files changed

+273
-246
lines changed

25 files changed

+273
-246
lines changed

.changeset/tender-masks-relax.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
"@utrecht/form-field-error-message-react": patch
3+
"@utrecht/form-field-description-react": patch
4+
"@utrecht/checkbox-group-react": patch
5+
"@utrecht/radio-button-react": patch
6+
"@utrecht/page-footer-react": patch
7+
"@utrecht/page-header-react": patch
8+
"@utrecht/page-layout-react": patch
9+
"@utrecht/radio-group-react": patch
10+
"@utrecht/data-badge-react": patch
11+
"@utrecht/form-field-react": patch
12+
"@utrecht/form-label-react": patch
13+
"@utrecht/page-body-react": patch
14+
"@utrecht/checkbox-react": patch
15+
"@utrecht/combobox-react": patch
16+
"@utrecht/fieldset-react": patch
17+
"@utrecht/listbox-react": patch
18+
"@utrecht/nav-bar-react": patch
19+
"@utrecht/textbox-react": patch
20+
"@utrecht/button-react": patch
21+
"@utrecht/body-react": patch
22+
"@utrecht/link-react": patch
23+
"@utrecht/root-react": patch
24+
"@utrecht/component-library-react": patch
25+
---
26+
27+
Make CSS and React components a dependency, instead of a devDependency. This should fix some TypeScript errors about missing types.

packages/component-library-react/package.json

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -103,43 +103,6 @@
103103
"watch:test": "jest --verbose --watch"
104104
},
105105
"dependencies": {
106-
"@utrecht/button-react": "workspace:*",
107-
"@utrecht/calendar-react": "workspace:*",
108-
"@utrecht/checkbox-react": "workspace:*",
109-
"@utrecht/combobox-react": "workspace:*",
110-
"@utrecht/fieldset-react": "workspace:*",
111-
"@utrecht/form-field-checkbox-react": "workspace:*",
112-
"@utrecht/form-field-description-react": "workspace:*",
113-
"@utrecht/form-field-error-message-react": "workspace:*",
114-
"@utrecht/form-field-react": "workspace:*",
115-
"@utrecht/form-label-react": "workspace:*",
116-
"@utrecht/link-react": "workspace:*",
117-
"@utrecht/listbox-react": "workspace:*",
118-
"@utrecht/radio-button-react": "workspace:*",
119-
"@utrecht/textbox-react": "workspace:*",
120-
"clsx": "2.1.1",
121-
"lodash.chunk": "4.2.0"
122-
},
123-
"devDependencies": {
124-
"@babel/core": "7.24.7",
125-
"@babel/plugin-transform-runtime": "7.24.7",
126-
"@babel/preset-env": "7.24.7",
127-
"@babel/preset-react": "7.24.7",
128-
"@babel/preset-typescript": "7.24.7",
129-
"@babel/runtime": "7.24.7",
130-
"@rollup/plugin-babel": "6.0.4",
131-
"@rollup/plugin-commonjs": "26.0.1",
132-
"@rollup/plugin-json": "6.1.0",
133-
"@rollup/plugin-node-resolve": "15.2.3",
134-
"@rollup/plugin-typescript": "12.1.0",
135-
"@testing-library/dom": "8.20.1",
136-
"@testing-library/jest-dom": "5.17.0",
137-
"@testing-library/react": "13.4.0",
138-
"@testing-library/user-event": "14.5.1",
139-
"@types/jest": "29.5.11",
140-
"@types/lodash.chunk": "4.2.9",
141-
"@types/react": "18.3.3",
142-
"@types/testing-library__jest-dom": "5.14.9",
143106
"@utrecht/accordion-css": "workspace:*",
144107
"@utrecht/alert-css": "workspace:*",
145108
"@utrecht/alert-dialog-css": "workspace:*",
@@ -151,13 +114,16 @@
151114
"@utrecht/badge-status-css": "workspace:*",
152115
"@utrecht/blockquote-css": "workspace:*",
153116
"@utrecht/breadcrumb-nav-css": "workspace:*",
154-
"@utrecht/build-utils-react": "workspace:*",
155117
"@utrecht/button-group-css": "workspace:*",
156118
"@utrecht/button-link-css": "workspace:*",
119+
"@utrecht/button-react": "workspace:*",
120+
"@utrecht/calendar-react": "workspace:*",
121+
"@utrecht/checkbox-react": "workspace:*",
157122
"@utrecht/code-block-css": "workspace:*",
158123
"@utrecht/code-css": "workspace:*",
159124
"@utrecht/color-sample-css": "workspace:*",
160125
"@utrecht/column-layout-css": "workspace:*",
126+
"@utrecht/combobox-react": "workspace:*",
161127
"@utrecht/currency-data-css": "workspace:*",
162128
"@utrecht/custom-checkbox-css": "workspace:*",
163129
"@utrecht/data-badge-css": "workspace:*",
@@ -168,8 +134,14 @@
168134
"@utrecht/document-css": "workspace:*",
169135
"@utrecht/drawer-css": "workspace:*",
170136
"@utrecht/emphasis-css": "workspace:*",
137+
"@utrecht/fieldset-react": "workspace:*",
171138
"@utrecht/figure-css": "workspace:*",
172139
"@utrecht/focus-ring-css": "workspace:*",
140+
"@utrecht/form-field-checkbox-react": "workspace:*",
141+
"@utrecht/form-field-description-react": "workspace:*",
142+
"@utrecht/form-field-error-message-react": "workspace:*",
143+
"@utrecht/form-field-react": "workspace:*",
144+
"@utrecht/form-label-react": "workspace:*",
173145
"@utrecht/form-toggle-css": "workspace:*",
174146
"@utrecht/heading-1-css": "workspace:*",
175147
"@utrecht/heading-2-css": "workspace:*",
@@ -185,8 +157,10 @@
185157
"@utrecht/index-char-nav-css": "workspace:*",
186158
"@utrecht/link-button-css": "workspace:*",
187159
"@utrecht/link-list-css": "workspace:*",
160+
"@utrecht/link-react": "workspace:*",
188161
"@utrecht/link-social-css": "workspace:*",
189162
"@utrecht/list-social-css": "workspace:*",
163+
"@utrecht/listbox-react": "workspace:*",
190164
"@utrecht/logo-button-css": "workspace:*",
191165
"@utrecht/logo-css": "workspace:*",
192166
"@utrecht/logo-image-css": "workspace:*",
@@ -207,6 +181,7 @@
207181
"@utrecht/paragraph-css": "workspace:*",
208182
"@utrecht/pre-heading-css": "workspace:*",
209183
"@utrecht/preserve-data-css": "workspace:*",
184+
"@utrecht/radio-button-react": "workspace:*",
210185
"@utrecht/rich-text-css": "workspace:*",
211186
"@utrecht/search-bar-css": "workspace:*",
212187
"@utrecht/select-css": "workspace:*",
@@ -219,11 +194,36 @@
219194
"@utrecht/table-css": "workspace:*",
220195
"@utrecht/table-of-contents-css": "workspace:*",
221196
"@utrecht/textarea-css": "workspace:*",
197+
"@utrecht/textbox-react": "workspace:*",
222198
"@utrecht/top-task-link-css": "workspace:*",
223199
"@utrecht/top-task-nav-css": "workspace:*",
224200
"@utrecht/unordered-list-css": "workspace:*",
225201
"@utrecht/url-data-css": "workspace:*",
226202
"@utrecht/vega-visualization-css": "workspace:*",
203+
"clsx": "2.1.1",
204+
"lodash.chunk": "4.2.0"
205+
},
206+
"devDependencies": {
207+
"@babel/core": "7.24.7",
208+
"@babel/plugin-transform-runtime": "7.24.7",
209+
"@babel/preset-env": "7.24.7",
210+
"@babel/preset-react": "7.24.7",
211+
"@babel/preset-typescript": "7.24.7",
212+
"@babel/runtime": "7.24.7",
213+
"@rollup/plugin-babel": "6.0.4",
214+
"@rollup/plugin-commonjs": "26.0.1",
215+
"@rollup/plugin-json": "6.1.0",
216+
"@rollup/plugin-node-resolve": "15.2.3",
217+
"@rollup/plugin-typescript": "12.1.0",
218+
"@testing-library/dom": "8.20.1",
219+
"@testing-library/jest-dom": "5.17.0",
220+
"@testing-library/react": "13.4.0",
221+
"@testing-library/user-event": "14.5.1",
222+
"@types/jest": "29.5.11",
223+
"@types/lodash.chunk": "4.2.9",
224+
"@types/react": "18.3.3",
225+
"@types/testing-library__jest-dom": "5.14.9",
226+
"@utrecht/build-utils-react": "workspace:*",
227227
"gatsby": "5.12.12",
228228
"jest": "29.7.0",
229229
"jest-environment-jsdom": "29.7.0",

packages/components-react/body-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"typecheck": "tsc --noEmit"
6060
},
6161
"dependencies": {
62+
"@utrecht/body-css": "workspace:*",
6263
"clsx": "2.1.1"
6364
},
6465
"devDependencies": {
@@ -69,7 +70,6 @@
6970
"@types/jest": "29.5.13",
7071
"@types/react": "18.3.3",
7172
"@types/testing-library__jest-dom": "5.14.9",
72-
"@utrecht/body-css": "workspace:*",
7373
"@utrecht/build-utils-react": "workspace:*",
7474
"jest": "29.7.0",
7575
"jest-environment-jsdom": "29.7.0",

packages/components-react/button-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"typecheck": "tsc --noEmit"
5151
},
5252
"dependencies": {
53+
"@utrecht/button-css": "workspace:*",
5354
"clsx": "2.1.1"
5455
},
5556
"devDependencies": {
@@ -61,7 +62,6 @@
6162
"@types/react": "18.3.3",
6263
"@types/testing-library__jest-dom": "5.14.9",
6364
"@utrecht/build-utils-react": "workspace:*",
64-
"@utrecht/button-css": "workspace:*",
6565
"jest": "29.7.0",
6666
"jest-environment-jsdom": "29.7.0",
6767
"react": "18.3.1",

packages/components-react/checkbox-group-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"@utrecht/checkbox-react": "workspace:*",
6363
"@utrecht/fieldset-react": "workspace:*",
6464
"@utrecht/form-field-checkbox-react": "workspace:*",
65+
"@utrecht/form-field-css": "workspace:*",
6566
"@utrecht/form-field-description-react": "workspace:*",
6667
"@utrecht/form-field-error-message-react": "workspace:*",
6768
"@utrecht/form-field-react": "workspace:*",
@@ -76,7 +77,6 @@
7677
"@types/react": "18.3.3",
7778
"@types/testing-library__jest-dom": "5.14.9",
7879
"@utrecht/build-utils-react": "workspace:*",
79-
"@utrecht/form-field-css": "workspace:*",
8080
"jest": "29.7.0",
8181
"jest-environment-jsdom": "29.7.0",
8282
"react": "18.3.1",

packages/components-react/checkbox-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
"typecheck": "tsc --noEmit"
6060
},
6161
"dependencies": {
62+
"@utrecht/checkbox-css": "workspace:*",
63+
"@utrecht/custom-checkbox-css": "workspace:*",
6264
"clsx": "2.1.1"
6365
},
6466
"devDependencies": {
@@ -70,8 +72,6 @@
7072
"@types/react": "18.3.3",
7173
"@types/testing-library__jest-dom": "5.14.9",
7274
"@utrecht/build-utils-react": "workspace:*",
73-
"@utrecht/checkbox-css": "workspace:*",
74-
"@utrecht/custom-checkbox-css": "workspace:*",
7575
"jest": "29.7.0",
7676
"jest-environment-jsdom": "29.7.0",
7777
"react": "18.3.1",

packages/components-react/combobox-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"typecheck": "tsc --noEmit"
6060
},
6161
"dependencies": {
62+
"@utrecht/combobox-css": "workspace:*",
6263
"clsx": "2.1.1"
6364
},
6465
"devDependencies": {
@@ -70,7 +71,6 @@
7071
"@types/react": "18.3.3",
7172
"@types/testing-library__jest-dom": "5.14.9",
7273
"@utrecht/build-utils-react": "workspace:*",
73-
"@utrecht/combobox-css": "workspace:*",
7474
"jest": "29.7.0",
7575
"jest-environment-jsdom": "29.7.0",
7676
"react": "18.3.1",

packages/components-react/data-badge-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"@types/react": "18.3.3",
2929
"@types/testing-library__jest-dom": "5.14.9",
3030
"@utrecht/build-utils-react": "workspace:*",
31-
"@utrecht/data-badge-css": "workspace:*",
3231
"jest": "29.7.0",
3332
"jest-environment-jsdom": "29.7.0",
3433
"react": "18.3.1",
@@ -52,6 +51,7 @@
5251
"react-dom": "18"
5352
},
5453
"dependencies": {
54+
"@utrecht/data-badge-css": "workspace:*",
5555
"clsx": "2.1.1"
5656
}
5757
}

packages/components-react/fieldset-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"typecheck": "tsc --noEmit"
6060
},
6161
"dependencies": {
62+
"@utrecht/form-fieldset-css": "workspace:*",
6263
"clsx": "2.1.1"
6364
},
6465
"devDependencies": {
@@ -70,7 +71,6 @@
7071
"@types/react": "18.3.3",
7172
"@types/testing-library__jest-dom": "5.14.9",
7273
"@utrecht/build-utils-react": "workspace:*",
73-
"@utrecht/form-fieldset-css": "workspace:*",
7474
"jest": "29.7.0",
7575
"jest-environment-jsdom": "29.7.0",
7676
"react": "18.3.1",

packages/components-react/form-field-description-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"typecheck": "tsc --noEmit"
6060
},
6161
"dependencies": {
62+
"@utrecht/form-field-description-css": "workspace:*",
6263
"clsx": "2.1.1"
6364
},
6465
"devDependencies": {
@@ -70,7 +71,6 @@
7071
"@types/react": "18.3.3",
7172
"@types/testing-library__jest-dom": "5.14.9",
7273
"@utrecht/build-utils-react": "workspace:*",
73-
"@utrecht/form-field-description-css": "workspace:*",
7474
"jest": "29.7.0",
7575
"jest-environment-jsdom": "29.7.0",
7676
"react": "18.3.1",

packages/components-react/form-field-error-message-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"typecheck": "tsc --noEmit"
6060
},
6161
"dependencies": {
62+
"@utrecht/form-field-error-message-css": "workspace:*",
6263
"clsx": "2.1.1"
6364
},
6465
"devDependencies": {
@@ -70,7 +71,6 @@
7071
"@types/react": "18.3.3",
7172
"@types/testing-library__jest-dom": "5.14.9",
7273
"@utrecht/build-utils-react": "workspace:*",
73-
"@utrecht/form-field-error-message-css": "workspace:*",
7474
"jest": "29.7.0",
7575
"jest-environment-jsdom": "29.7.0",
7676
"react": "18.3.1",

packages/components-react/form-field-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"typecheck": "tsc --noEmit"
6060
},
6161
"dependencies": {
62+
"@utrecht/form-field-css": "workspace:*",
6263
"clsx": "2.1.1"
6364
},
6465
"devDependencies": {
@@ -70,7 +71,6 @@
7071
"@types/react": "18.3.3",
7172
"@types/testing-library__jest-dom": "5.14.9",
7273
"@utrecht/build-utils-react": "workspace:*",
73-
"@utrecht/form-field-css": "workspace:*",
7474
"jest": "29.7.0",
7575
"jest-environment-jsdom": "29.7.0",
7676
"react": "18.3.1",

packages/components-react/form-label-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"typecheck": "tsc --noEmit"
6060
},
6161
"dependencies": {
62+
"@utrecht/form-label-css": "workspace:*",
6263
"clsx": "2.1.1"
6364
},
6465
"devDependencies": {
@@ -70,7 +71,6 @@
7071
"@types/react": "18.3.3",
7172
"@types/testing-library__jest-dom": "5.14.9",
7273
"@utrecht/build-utils-react": "workspace:*",
73-
"@utrecht/form-label-css": "workspace:*",
7474
"jest": "29.7.0",
7575
"jest-environment-jsdom": "29.7.0",
7676
"react": "18.3.1",

packages/components-react/link-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"typecheck": "tsc --noEmit"
6060
},
6161
"dependencies": {
62+
"@utrecht/link-css": "workspace:*",
6263
"clsx": "2.1.1"
6364
},
6465
"devDependencies": {
@@ -70,7 +71,6 @@
7071
"@types/react": "18.3.3",
7172
"@types/testing-library__jest-dom": "5.14.9",
7273
"@utrecht/build-utils-react": "workspace:*",
73-
"@utrecht/link-css": "workspace:*",
7474
"jest": "29.7.0",
7575
"jest-environment-jsdom": "29.7.0",
7676
"react": "18.3.1",

packages/components-react/listbox-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"typecheck": "tsc --noEmit"
6060
},
6161
"dependencies": {
62+
"@utrecht/listbox-css": "workspace:*",
6263
"clsx": "2.1.1"
6364
},
6465
"devDependencies": {
@@ -70,7 +71,6 @@
7071
"@types/react": "18.3.3",
7172
"@types/testing-library__jest-dom": "5.14.9",
7273
"@utrecht/build-utils-react": "workspace:*",
73-
"@utrecht/listbox-css": "workspace:*",
7474
"jest": "29.7.0",
7575
"jest-environment-jsdom": "29.7.0",
7676
"react": "18.3.1",

packages/components-react/nav-bar-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"typecheck": "tsc --noEmit"
6060
},
6161
"dependencies": {
62+
"@utrecht/nav-bar-css": "workspace:*",
6263
"clsx": "2.1.1"
6364
},
6465
"devDependencies": {
@@ -70,7 +71,6 @@
7071
"@types/react": "18.3.3",
7172
"@types/testing-library__jest-dom": "5.14.9",
7273
"@utrecht/build-utils-react": "workspace:*",
73-
"@utrecht/nav-bar-css": "workspace:*",
7474
"jest": "29.7.0",
7575
"jest-environment-jsdom": "29.7.0",
7676
"react": "18.3.1",

0 commit comments

Comments
 (0)