Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: integrate yarn constraints #3472

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/actions/file-diff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,22 @@
"description": "A GitHub Action to compare asset sizes and generate a diff if changes are found.",
"license": "Apache-2.0",
"author": "Adobe",
"homepage": "https://opensource.adobe.com/spectrum-css",
"repository": {
"type": "git",
"url": "https://github.com/adobe/spectrum-css.git",
"directory": ".github/actions/file-diff"
},
"bugs": {
"url": "https://github.com/adobe/spectrum-css/issues"
},
"main": "index.js",
"files": [
"*.md",
"*.js",
"*.yml",
"package.json"
],
"dependencies": {
"@actions/artifact": "^2.2.1",
"@actions/core": "^1.11.1",
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/file-diff/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ exports.fetchFilesAndSizes = async function (rootPath, patterns = [], { core })
return new Map();
}

core.info(`Found ${files.length} files matching the glob pattern ${patterns.join(", ")}.`);
core.info(`From ${rootPath}, found ${files.length} files matching the glob pattern ${patterns.join(", ")}.`);

// Fetch the files and their sizes, creates an array of arrays to be used in the table
return new Map(
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/compare-results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,14 @@ jobs:
with:
name: ubuntu-latest-node20-compiled-assets-${{ steps.derive-key.outputs.head-path }}
path: ${{ github.workspace }}/${{ steps.derive-key.outputs.head-path }}
merge-multiple: true

- name: Download build artifacts for base
uses: actions/download-artifact@v4
with:
name: ubuntu-latest-node20-compiled-assets-${{ steps.derive-key.outputs.base-path }}
path: ${{ github.workspace }}/${{ steps.derive-key.outputs.base-path }}
merge-multiple: true

- name: Compare compiled output file size
id: compare
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/publish-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ jobs:
shell: bash
run: yarn install --immutable

- name: Generate metadata assets
shell: bash
run: yarn report

## --- BUILD --- ##
- name: Build storybook
shell: bash
Expand Down
20 changes: 19 additions & 1 deletion .storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,23 @@
"license": "Apache-2.0",
"author": "Adobe",
"homepage": "https://opensource.adobe.com/spectrum-css/",
"repository": {
"type": "git",
"url": "https://github.com/adobe/spectrum-css.git",
"directory": ".storybook"
},
"bugs": {
"url": "https://github.com/adobe/spectrum-css/issues"
},
"type": "module",
"exports": {
".": "./preview.js",
"./blocks": "./blocks/index.js",
"./blocks/*": "./blocks/*",
"./decorators": "./decorators/index.js",
"./decorators/*": "./decorators/*",
"./deprecated/*": "./deprecated/*",
"./guides/*": "./guides/*",
"./loaders": "./loaders/index.js",
"./loaders/*": "./loaders/*",
"./main": "./main.js",
Expand All @@ -20,6 +30,7 @@
"./modes/*": "./modes/*",
"./package.json": "./package.json",
"./preview": "./preview.js",
"./templates/*": "./templates/*",
"./types": "./types/index.js",
"./types/*": "./types/*"
},
Expand Down Expand Up @@ -68,5 +79,12 @@
"rollup-plugin-postcss-lit": "^2.1.0",
"storybook": "^8.4.7",
"vite": "^5.4.11"
}
},
"keywords": [
"design-system",
"spectrum",
"spectrum-css",
"adobe",
"adobe-spectrum"
]
}
39 changes: 20 additions & 19 deletions README.md

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions components/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The Spectrum CSS accordion component",
"license": "Apache-2.0",
"author": "Adobe",
"homepage": "https://opensource.adobe.com/spectrum-css/accordion",
"homepage": "https://opensource.adobe.com/spectrum-css/?path=/docs/components-accordion--docs",
"repository": {
"type": "git",
"url": "https://github.com/adobe/spectrum-css.git",
Expand All @@ -24,26 +24,26 @@
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"*.md",
"package.json",
"stories/*",
"metadata/*"
],
"peerDependencies": {
"@spectrum-css/icon": ">=7",
"@spectrum-css/tokens": ">=14 || >=15"
},
"devDependencies": {
"@spectrum-css/icon": "workspace:^",
"@spectrum-css/tokens": "workspace:^"
"@spectrum-css/icon": "8.0.1",
"@spectrum-css/tokens": "15.2.0",
"eslint": "^8.57.0",
"npm-run-all2": "^7.0.2",
"prettier": "^3.4.2",
"stylelint": "^16.9.0"
},
"keywords": [
"design-system",
"spectrum",
"css",
"design system",
"adobe"
"spectrum-css",
"adobe",
"adobe-spectrum",
"component",
"css"
],
"publishConfig": {
"access": "public"
Expand Down
32 changes: 16 additions & 16 deletions components/actionbar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The Spectrum CSS actionbar component",
"license": "Apache-2.0",
"author": "Adobe",
"homepage": "https://opensource.adobe.com/spectrum-css/actionbar",
"homepage": "https://opensource.adobe.com/spectrum-css/?path=/docs/components-action-bar--docs",
"repository": {
"type": "git",
"url": "https://github.com/adobe/spectrum-css.git",
Expand All @@ -24,13 +24,6 @@
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"*.md",
"package.json",
"stories/*",
"metadata/*"
],
"peerDependencies": {
"@spectrum-css/actiongroup": ">=5",
"@spectrum-css/closebutton": ">=5",
Expand All @@ -39,17 +32,24 @@
"@spectrum-css/tokens": ">=14 || >=15"
},
"devDependencies": {
"@spectrum-css/actiongroup": "workspace:^",
"@spectrum-css/closebutton": "workspace:^",
"@spectrum-css/fieldlabel": "workspace:^",
"@spectrum-css/popover": "workspace:^",
"@spectrum-css/tokens": "workspace:^"
"@spectrum-css/actiongroup": "5.3.1",
"@spectrum-css/closebutton": "5.4.1",
"@spectrum-css/fieldlabel": "9.0.1",
"@spectrum-css/popover": "7.3.1",
"@spectrum-css/tokens": "15.2.0",
"eslint": "^8.57.0",
"npm-run-all2": "^7.0.2",
"prettier": "^3.4.2",
"stylelint": "^16.9.0"
},
"keywords": [
"design-system",
"spectrum",
"css",
"design system",
"adobe"
"spectrum-css",
"adobe",
"adobe-spectrum",
"component",
"css"
],
"publishConfig": {
"access": "public"
Expand Down
26 changes: 13 additions & 13 deletions components/actionbutton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The Spectrum CSS action button component",
"license": "Apache-2.0",
"author": "Adobe",
"homepage": "https://opensource.adobe.com/spectrum-css/actionbutton",
"homepage": "https://opensource.adobe.com/spectrum-css/?path=/docs/components-action-button--docs",
"repository": {
"type": "git",
"url": "https://github.com/adobe/spectrum-css.git",
Expand All @@ -24,13 +24,6 @@
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"*.md",
"package.json",
"stories/*",
"metadata/*"
],
"peerDependencies": {
"@spectrum-css/icon": ">=7",
"@spectrum-css/tokens": ">=14 || >=15"
Expand All @@ -42,14 +35,21 @@
},
"devDependencies": {
"@spectrum-css/commons": "workspace:^",
"@spectrum-css/icon": "workspace:^",
"@spectrum-css/tokens": "workspace:^"
"@spectrum-css/icon": "8.0.1",
"@spectrum-css/tokens": "15.2.0",
"eslint": "^8.57.0",
"npm-run-all2": "^7.0.2",
"prettier": "^3.4.2",
"stylelint": "^16.9.0"
},
"keywords": [
"design-system",
"spectrum",
"css",
"design system",
"adobe"
"spectrum-css",
"adobe",
"adobe-spectrum",
"component",
"css"
],
"publishConfig": {
"access": "public"
Expand Down
26 changes: 15 additions & 11 deletions components/actiongroup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The Spectrum CSS actiongroup component",
"license": "Apache-2.0",
"author": "Adobe",
"homepage": "https://opensource.adobe.com/spectrum-css/actiongroup",
"homepage": "https://opensource.adobe.com/spectrum-css/?path=/docs/components-action-group--docs",
"repository": {
"type": "git",
"url": "https://github.com/adobe/spectrum-css.git",
Expand All @@ -24,13 +24,6 @@
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"*.md",
"package.json",
"stories/*",
"metadata/*"
],
"peerDependencies": {
"@spectrum-css/actionbutton": ">=6",
"@spectrum-css/tokens": ">=14 || >=15"
Expand All @@ -40,11 +33,22 @@
"optional": true
}
},
"devDependencies": {
"@spectrum-css/actionbutton": "6.3.1",
"@spectrum-css/tokens": "15.2.0",
"eslint": "^8.57.0",
"npm-run-all2": "^7.0.2",
"prettier": "^3.4.2",
"stylelint": "^16.9.0"
},
"keywords": [
"design-system",
"spectrum",
"css",
"design system",
"adobe"
"spectrum-css",
"adobe",
"adobe-spectrum",
"component",
"css"
],
"publishConfig": {
"access": "public"
Expand Down
32 changes: 16 additions & 16 deletions components/actionmenu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The Spectrum CSS actionmenu component",
"license": "Apache-2.0",
"author": "Adobe",
"homepage": "https://opensource.adobe.com/spectrum-css/actionmenu",
"homepage": "https://opensource.adobe.com/spectrum-css/?path=/docs/components-action-menu--docs",
"repository": {
"type": "git",
"url": "https://github.com/adobe/spectrum-css.git",
Expand All @@ -24,13 +24,6 @@
"./stories/*": "./stories/*"
},
"main": "dist/index.css",
"files": [
"dist/*",
"*.md",
"package.json",
"stories/*",
"metadata/*"
],
"peerDependencies": {
"@spectrum-css/actionbutton": ">=6",
"@spectrum-css/icon": ">=7",
Expand All @@ -39,17 +32,24 @@
"@spectrum-css/tokens": ">=14 || >=15"
},
"devDependencies": {
"@spectrum-css/actionbutton": "workspace:^",
"@spectrum-css/icon": "workspace:^",
"@spectrum-css/menu": "workspace:^",
"@spectrum-css/popover": "workspace:^",
"@spectrum-css/tokens": "workspace:^"
"@spectrum-css/actionbutton": "6.3.1",
"@spectrum-css/icon": "8.0.1",
"@spectrum-css/menu": "8.0.1",
"@spectrum-css/popover": "7.3.1",
"@spectrum-css/tokens": "15.2.0",
"eslint": "^8.57.0",
"npm-run-all2": "^7.0.2",
"prettier": "^3.4.2",
"stylelint": "^16.9.0"
},
"keywords": [
"design-system",
"spectrum",
"css",
"design system",
"adobe"
"spectrum-css",
"adobe",
"adobe-spectrum",
"component",
"css"
],
"publishConfig": {
"access": "public"
Expand Down
Loading
Loading