Skip to content

Commit

Permalink
fix: add dist exports to all packages (#3107)
Browse files Browse the repository at this point in the history
  • Loading branch information
castastrophe authored Sep 13, 2024
1 parent cf61a13 commit 83d5a17
Show file tree
Hide file tree
Showing 83 changed files with 416 additions and 246 deletions.
88 changes: 88 additions & 0 deletions .changeset/stupid-dancers-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
"@spectrum-css/floatingactionbutton": patch
"@spectrum-css/opacitycheckerboard": patch
"@spectrum-css/illustratedmessage": patch
"@spectrum-css/coachindicator": patch
"@spectrum-css/contextualhelp": patch
"@spectrum-css/progresscircle": patch
"@spectrum-css/dropindicator": patch
"@spectrum-css/infieldbutton": patch
"@spectrum-css/actionbutton": patch
"@spectrum-css/pickerbutton": patch
"@spectrum-css/actiongroup": patch
"@spectrum-css/alertbanner": patch
"@spectrum-css/alertdialog": patch
"@spectrum-css/buttongroup": patch
"@spectrum-css/clearbutton": patch
"@spectrum-css/closebutton": patch
"@spectrum-css/colorhandle": patch
"@spectrum-css/colorslider": patch
"@spectrum-css/inlinealert": patch
"@spectrum-css/logicbutton": patch
"@spectrum-css/progressbar": patch
"@spectrum-css/statuslight": patch
"@spectrum-css/swatchgroup": patch
"@spectrum-css/actionmenu": patch
"@spectrum-css/breadcrumb": patch
"@spectrum-css/colorloupe": patch
"@spectrum-css/colorwheel": patch
"@spectrum-css/datepicker": patch
"@spectrum-css/fieldgroup": patch
"@spectrum-css/fieldlabel": patch
"@spectrum-css/pagination": patch
"@spectrum-css/typography": patch
"@spectrum-css/accordion": patch
"@spectrum-css/actionbar": patch
"@spectrum-css/assetcard": patch
"@spectrum-css/assetlist": patch
"@spectrum-css/coachmark": patch
"@spectrum-css/colorarea": patch
"@spectrum-css/splitview": patch
"@spectrum-css/textfield": patch
"@spectrum-css/thumbnail": patch
"@spectrum-css/calendar": patch
"@spectrum-css/checkbox": patch
"@spectrum-css/combobox": patch
"@spectrum-css/dropzone": patch
"@spectrum-css/helptext": patch
"@spectrum-css/steplist": patch
"@spectrum-css/taggroup": patch
"@spectrum-css/treeview": patch
"@spectrum-css/underlay": patch
"@spectrum-css/divider": patch
"@spectrum-css/popover": patch
"@spectrum-css/sidenav": patch
"@spectrum-css/stepper": patch
"@spectrum-css/tooltip": patch
"@spectrum-css/avatar": patch
"@spectrum-css/button": patch
"@spectrum-css/dialog": patch
"@spectrum-css/miller": patch
"@spectrum-css/picker": patch
"@spectrum-css/rating": patch
"@spectrum-css/search": patch
"@spectrum-css/slider": patch
"@spectrum-css/swatch": patch
"@spectrum-css/switch": patch
"@spectrum-css/asset": patch
"@spectrum-css/badge": patch
"@spectrum-css/modal": patch
"@spectrum-css/radio": patch
"@spectrum-css/table": patch
"@spectrum-css/toast": patch
"@spectrum-css/card": patch
"@spectrum-css/dial": patch
"@spectrum-css/icon": patch
"@spectrum-css/link": patch
"@spectrum-css/menu": patch
"@spectrum-css/page": patch
"@spectrum-css/site": patch
"@spectrum-css/tabs": patch
"@spectrum-css/tray": patch
"@spectrum-css/well": patch
"@spectrum-css/tag": patch
---

Incorporate glob export for the dist directory in all component packages as well as glob markdown exports (to include both CHANGELOG and READMEs).

Sort keys in the package.json assets.
7 changes: 4 additions & 3 deletions components/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,23 @@
},
"exports": {
".": "./dist/index.css",
"./CHANGELOG.md": "./CHANGELOG.md",
"./*.md": "./*.md",
"./dist/*": "./dist/*",
"./index-*.css": "./dist/index-*.css",
"./index.css": "./dist/index.css",
"./metadata.json": "./metadata/metadata.json",
"./metadata/*": "./metadata/*",
"./package.json": "./package.json",
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"CHANGELOG.md",
"*.md",
"package.json",
"stories/*",
"metadata/*"
],
"main": "dist/index.css",
"peerDependencies": {
"@spectrum-css/icon": ">=7",
"@spectrum-css/tokens": ">=14"
Expand Down
7 changes: 4 additions & 3 deletions components/actionbar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,23 @@
},
"exports": {
".": "./dist/index.css",
"./CHANGELOG.md": "./CHANGELOG.md",
"./*.md": "./*.md",
"./dist/*": "./dist/*",
"./index-*.css": "./dist/index-*.css",
"./index.css": "./dist/index.css",
"./metadata.json": "./metadata/metadata.json",
"./metadata/*": "./metadata/*",
"./package.json": "./package.json",
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"CHANGELOG.md",
"*.md",
"package.json",
"stories/*",
"metadata/*"
],
"main": "dist/index.css",
"peerDependencies": {
"@spectrum-css/actiongroup": ">=5",
"@spectrum-css/closebutton": ">=5",
Expand Down
7 changes: 4 additions & 3 deletions components/actionbutton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,23 @@
},
"exports": {
".": "./dist/index.css",
"./CHANGELOG.md": "./CHANGELOG.md",
"./*.md": "./*.md",
"./dist/*": "./dist/*",
"./index-*.css": "./dist/index-*.css",
"./index.css": "./dist/index.css",
"./metadata.json": "./metadata/metadata.json",
"./metadata/*": "./metadata/*",
"./package.json": "./package.json",
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"CHANGELOG.md",
"*.md",
"package.json",
"stories/*",
"metadata/*"
],
"main": "dist/index.css",
"peerDependencies": {
"@spectrum-css/icon": ">=7",
"@spectrum-css/tokens": ">=14"
Expand Down
7 changes: 4 additions & 3 deletions components/actiongroup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,23 @@
},
"exports": {
".": "./dist/index.css",
"./CHANGELOG.md": "./CHANGELOG.md",
"./*.md": "./*.md",
"./dist/*": "./dist/*",
"./index-*.css": "./dist/index-*.css",
"./index.css": "./dist/index.css",
"./metadata.json": "./metadata/metadata.json",
"./metadata/*": "./metadata/*",
"./package.json": "./package.json",
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"CHANGELOG.md",
"*.md",
"package.json",
"stories/*",
"metadata/*"
],
"main": "dist/index.css",
"peerDependencies": {
"@spectrum-css/actionbutton": ">=6",
"@spectrum-css/tokens": ">=14"
Expand Down
7 changes: 4 additions & 3 deletions components/actionmenu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,23 @@
},
"exports": {
".": "./dist/index.css",
"./CHANGELOG.md": "./CHANGELOG.md",
"./*.md": "./*.md",
"./dist/*": "./dist/*",
"./index-*.css": "./dist/index-*.css",
"./index.css": "./dist/index.css",
"./metadata.json": "./metadata/metadata.json",
"./metadata/*": "./metadata/*",
"./package.json": "./package.json",
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"CHANGELOG.md",
"*.md",
"package.json",
"stories/*",
"metadata/*"
],
"main": "dist/index.css",
"keywords": [
"spectrum",
"css",
Expand Down
7 changes: 4 additions & 3 deletions components/alertbanner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,23 @@
},
"exports": {
".": "./dist/index.css",
"./CHANGELOG.md": "./CHANGELOG.md",
"./*.md": "./*.md",
"./dist/*": "./dist/*",
"./index-*.css": "./dist/index-*.css",
"./index.css": "./dist/index.css",
"./metadata.json": "./metadata/metadata.json",
"./metadata/*": "./metadata/*",
"./package.json": "./package.json",
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"CHANGELOG.md",
"*.md",
"package.json",
"stories/*",
"metadata/*"
],
"main": "dist/index.css",
"peerDependencies": {
"@spectrum-css/button": ">=13",
"@spectrum-css/closebutton": ">=5",
Expand Down
7 changes: 4 additions & 3 deletions components/alertdialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,23 @@
},
"exports": {
".": "./dist/index.css",
"./CHANGELOG.md": "./CHANGELOG.md",
"./*.md": "./*.md",
"./dist/*": "./dist/*",
"./index-*.css": "./dist/index-*.css",
"./index.css": "./dist/index.css",
"./metadata.json": "./metadata/metadata.json",
"./metadata/*": "./metadata/*",
"./package.json": "./package.json",
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"CHANGELOG.md",
"*.md",
"package.json",
"stories/*",
"metadata/*"
],
"main": "dist/index.css",
"peerDependencies": {
"@spectrum-css/buttongroup": ">=7",
"@spectrum-css/divider": ">=3",
Expand Down
7 changes: 4 additions & 3 deletions components/asset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,23 @@
},
"exports": {
".": "./dist/index.css",
"./CHANGELOG.md": "./CHANGELOG.md",
"./*.md": "./*.md",
"./dist/*": "./dist/*",
"./index-*.css": "./dist/index-*.css",
"./index.css": "./dist/index.css",
"./metadata.json": "./metadata/metadata.json",
"./metadata/*": "./metadata/*",
"./package.json": "./package.json",
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"CHANGELOG.md",
"*.md",
"package.json",
"stories/*",
"metadata/*"
],
"main": "dist/index.css",
"peerDependencies": {
"@spectrum-css/tokens": ">=14"
},
Expand Down
7 changes: 4 additions & 3 deletions components/assetcard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,23 @@
},
"exports": {
".": "./dist/index.css",
"./CHANGELOG.md": "./CHANGELOG.md",
"./*.md": "./*.md",
"./dist/*": "./dist/*",
"./index-*.css": "./dist/index-*.css",
"./index.css": "./dist/index.css",
"./metadata.json": "./metadata/metadata.json",
"./metadata/*": "./metadata/*",
"./package.json": "./package.json",
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"CHANGELOG.md",
"*.md",
"package.json",
"stories/*",
"metadata/*"
],
"main": "dist/index.css",
"peerDependencies": {
"@spectrum-css/checkbox": ">=9",
"@spectrum-css/tokens": ">=14"
Expand Down
7 changes: 4 additions & 3 deletions components/assetlist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,23 @@
},
"exports": {
".": "./dist/index.css",
"./CHANGELOG.md": "./CHANGELOG.md",
"./*.md": "./*.md",
"./dist/*": "./dist/*",
"./index-*.css": "./dist/index-*.css",
"./index.css": "./dist/index.css",
"./metadata.json": "./metadata/metadata.json",
"./metadata/*": "./metadata/*",
"./package.json": "./package.json",
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"CHANGELOG.md",
"*.md",
"package.json",
"stories/*",
"metadata/*"
],
"main": "dist/index.css",
"peerDependencies": {
"@spectrum-css/checkbox": ">=9",
"@spectrum-css/icon": ">=7",
Expand Down
7 changes: 4 additions & 3 deletions components/avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,23 @@
},
"exports": {
".": "./dist/index.css",
"./CHANGELOG.md": "./CHANGELOG.md",
"./*.md": "./*.md",
"./dist/*": "./dist/*",
"./index-*.css": "./dist/index-*.css",
"./index.css": "./dist/index.css",
"./metadata.json": "./metadata/metadata.json",
"./metadata/*": "./metadata/*",
"./package.json": "./package.json",
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"CHANGELOG.md",
"*.md",
"package.json",
"stories/*",
"metadata/*"
],
"main": "dist/index.css",
"peerDependencies": {
"@spectrum-css/tokens": ">=14"
},
Expand Down
Loading

0 comments on commit 83d5a17

Please sign in to comment.