Skip to content

Commit

Permalink
fix: consistently support the main import, and include .md exports …
Browse files Browse the repository at this point in the history
…for development
  • Loading branch information
Robbert committed Feb 14, 2025
1 parent d319f72 commit c4b943b
Show file tree
Hide file tree
Showing 27 changed files with 89 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .changeset/seven-toys-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
"@utrecht/form-field-error-message-react": patch
"@utrecht/form-field-description-react": patch
"@utrecht/form-field-checkbox-react": patch
"@utrecht/select-combobox-react": patch
"@utrecht/checkbox-group-react": patch
"@utrecht/radio-button-react": patch
"@utrecht/page-footer-react": patch
"@utrecht/page-header-react": patch
"@utrecht/page-layout-react": patch
"@utrecht/radio-group-react": patch
"@utrecht/data-badge-react": patch
"@utrecht/form-field-react": patch
"@utrecht/form-label-react": patch
"@utrecht/page-body-react": patch
"@utrecht/calendar-react": patch
"@utrecht/checkbox-react": patch
"@utrecht/combobox-react": patch
"@utrecht/fieldset-react": patch
"@utrecht/listbox-react": patch
"@utrecht/nav-bar-react": patch
"@utrecht/textbox-react": patch
"@utrecht/button-react": patch
"@utrecht/body-react": patch
"@utrecht/link-react": patch
"@utrecht/root-react": patch
"@utrecht/component-library-react": patch
---

Fix `exports` to include `.md` files and consistently support the main import.
Note: the `.md` files are for development purposes only, they are not supported as part of the public API.
27 changes: 24 additions & 3 deletions packages/component-library-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,33 @@
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
},
"./VegaVisualization": {
"types": "./dist/VegaVisualization.d.ts",
"import": "./dist/VegaVisualization.mjs"
},
"./Calendar": {
"types": "./dist/Calendar.d.ts",
"import": "./dist/Calendar.mjs"
},
"./css-module": {
"types": "./dist/css-module/index.d.ts",
"import": "./dist/css-module/index.mjs"
},
"./css-module/VegaVisualization": {
"types": "./dist/css-module/VegaVisualization.d.ts",
"import": "./dist/css-module/VegaVisualization.mjs"
},
"./css-module/Calendar": {
"types": "./dist/css-module/Calendar.d.ts",
"import": "./dist/css-module/Calendar.mjs"
},
"./dist/.jest-test-results.json": "./dist/.jest-test-results.json",
"./tsconfig.md": "./tsconfig.md",
"./TESTING.md": "./TESTING.md",
"./README.nl.md": "./README.nl.md",
"./README.md": "./README.md",
"./CONTRIBUTING.md": "./CONTRIBUTING.md",
"./CHANGELOG.md": "./CHANGELOG.md",
"./README.md": "./README.md",
"./README.nl.md": "./README.nl.md",
"./TESTING.md": "./TESTING.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/body-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/button-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/calendar-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
9 changes: 9 additions & 0 deletions packages/components-react/checkbox-group-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand All @@ -37,6 +38,14 @@
"./dist/index.mjs": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
},
"./dist/css": {
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./dist/css.mjs": {
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
}
},
"files": [
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/checkbox-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/combobox-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/data-badge-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/fieldset-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/form-field-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/form-label-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/link-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/listbox-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/nav-bar-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/page-body-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/page-footer-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/page-header-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/page-layout-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/radio-button-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/radio-group-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/root-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
2 changes: 2 additions & 0 deletions packages/components-react/select-combobox-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./README.md": "./README.md",
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/components-react/textbox-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"types": "./dist/css.d.ts",
"import": "./dist/css.mjs"
},
"./CHANGELOG.md": "./CHANGELOG.md",
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs"
Expand Down

0 comments on commit c4b943b

Please sign in to comment.