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

chore: add basic project constraints #5152

Merged
merged 3 commits into from
Mar 25, 2025

Conversation

castastrophe
Copy link
Collaborator

@castastrophe castastrophe commented Mar 4, 2025

Description

Yarn constraints allow enforcement of rules across workspaces in a project.

This update does not apply the constraints, but rather defines them so they can be reported. We can do a separate PR to apply the updates via: yarn constraints --fix.

Motivation and context

This update adds package.json standardization rules such as:

  • If no license is listed, use Apache-2.0 which is the standard for Adobe open source projects
  • Expects author to be "Adobe"
  • Sets the correct repository details, including accurately reflecting the directory location

For non-component packages, this update expects packages:

  • To use a default set of keywords ('design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html')
  • If no homepage is listed, using the default project website

Component-specific packages expect:

  • If no homepage is listed, uses the component's page on the project website
  • Public access when published
  • Default keywords plus 'component', 'css'
  • Standard main, module, and type settings (exceptions for close-button, clear-button, and modal)

How has this been tested?

  • yarn constraints: expect it to report the following proposed fixes
─ @adobe/spectrum-web-components@workspace:.
│  ├─ ⚙ Missing field license; expected 'Apache-2.0'
│  ├─ ⚙ Missing field author; expected 'Adobe'
│  ├─ ⚙ Missing field repository.type; expected 'git'
│  ├─ ⚙ Missing field repository.url; expected 'https://github.com/adobe/spectrum-web-components.git'
│  ├─ ⚙ Missing field bugs.url; expected 'https://github.com/adobe/spectrum-web-components/issues'
│  ├─ ⚙ Missing field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html' ]
│  └─ ⚙ Missing field homepage; expected 'https://opensource.adobe.com/spectrum-web-components/'
│
├─ @spectrum-web-components/eslint-plugin@workspace:linters/eslint
│  ├─ ⚙ Missing field license; expected 'Apache-2.0'
│  ├─ ⚙ Missing field author; expected 'Adobe'
│  ├─ ⚙ Missing field repository.type; expected 'git'
│  ├─ ⚙ Missing field repository.url; expected 'https://github.com/adobe/spectrum-web-components.git'
│  ├─ ⚙ Missing field repository.directory; expected 'linters/eslint'
│  ├─ ⚙ Missing field bugs.url; expected 'https://github.com/adobe/spectrum-web-components/issues'
│  ├─ ⚙ Missing field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html' ]
│  └─ ⚙ Missing field homepage; expected 'https://opensource.adobe.com/spectrum-web-components/'
│
├─ stylelint-header@workspace:linters/stylelint-header
│  ├─ ⚙ Missing field repository.type; expected 'git'
│  ├─ ⚙ Missing field repository.url; expected 'https://github.com/adobe/spectrum-web-components.git'
│  ├─ ⚙ Missing field repository.directory; expected 'linters/stylelint-header'
│  ├─ ⚙ Missing field bugs.url; expected 'https://github.com/adobe/spectrum-web-components/issues'
│  └─ ⚙ Missing field homepage; expected 'https://opensource.adobe.com/spectrum-web-components/'
│
├─ @spectrum-web-components/accordion@workspace:packages/accordion
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/action-bar@workspace:packages/action-bar
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/action-button@workspace:packages/action-button
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/action-group@workspace:packages/action-group
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/action-menu@workspace:packages/action-menu
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/alert-banner@workspace:packages/alert-banner
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/alert-dialog@workspace:packages/alert-dialog
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/asset@workspace:packages/asset
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/avatar@workspace:packages/avatar
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/badge@workspace:packages/badge
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/breadcrumbs@workspace:packages/breadcrumbs
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/button@workspace:packages/button
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/button-group@workspace:packages/button-group
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/card@workspace:packages/card
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/checkbox@workspace:packages/checkbox
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/clear-button@workspace:packages/clear-button
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/clear-button.css.js', found 'src/clear-button.css.js'
│  └─ ⚙ Invalid field module; expected './src/clear-button.css.js', found 'src/clear-button.css.js'
│
├─ @spectrum-web-components/close-button@workspace:packages/close-button
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/close-button.css.js', found 'src/close-button.css.js'
│  └─ ⚙ Invalid field module; expected './src/close-button.css.js', found 'src/close-button.css.js'
│
├─ @spectrum-web-components/coachmark@workspace:packages/coachmark
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/color-area@workspace:packages/color-area
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/color-field@workspace:packages/color-field
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/color-handle@workspace:packages/color-handle
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/color-loupe@workspace:packages/color-loupe
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/color-slider@workspace:packages/color-slider
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/color-wheel@workspace:packages/color-wheel
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/combobox@workspace:packages/combobox
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/contextual-help@workspace:packages/contextual-help
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/dialog@workspace:packages/dialog
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/divider@workspace:packages/divider
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/dropzone@workspace:packages/dropzone
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/field-group@workspace:packages/field-group
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/field-label@workspace:packages/field-label
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/help-text@workspace:packages/help-text
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/icon@workspace:packages/icon
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/icons@workspace:packages/icons
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/icons-ui@workspace:packages/icons-ui
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/icons-workflow@workspace:packages/icons-workflow
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/iconset@workspace:packages/iconset
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/illustrated-message@workspace:packages/illustrated-message
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/infield-button@workspace:packages/infield-button
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/link@workspace:packages/link
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/menu@workspace:packages/menu
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/meter@workspace:packages/meter
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/modal@workspace:packages/modal
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/modal.css.js', found 'src/modal.css.js'
│  └─ ⚙ Invalid field module; expected './src/modal.css.js', found 'src/modal.css.js'
│
├─ @spectrum-web-components/number-field@workspace:packages/number-field
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/overlay@workspace:packages/overlay
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/picker@workspace:packages/picker
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/picker-button@workspace:packages/picker-button
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/popover@workspace:packages/popover
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/progress-bar@workspace:packages/progress-bar
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/progress-circle@workspace:packages/progress-circle
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/radio@workspace:packages/radio
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/search@workspace:packages/search
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/sidenav@workspace:packages/sidenav
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/slider@workspace:packages/slider
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/split-view@workspace:packages/split-view
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/status-light@workspace:packages/status-light
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/swatch@workspace:packages/swatch
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/switch@workspace:packages/switch
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/table@workspace:packages/table
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/tabs@workspace:packages/tabs
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/tags@workspace:packages/tags
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/textfield@workspace:packages/textfield
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/thumbnail@workspace:packages/thumbnail
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/toast@workspace:packages/toast
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/tooltip@workspace:packages/tooltip
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/top-nav@workspace:packages/top-nav
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/tray@workspace:packages/tray
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│  ├─ ⚙ Invalid field main; expected './src/index.js', found 'src/index.js'
│  └─ ⚙ Invalid field module; expected './src/index.js', found 'src/index.js'
│
├─ @spectrum-web-components/underlay@workspace:packages/underlay
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  └─ ⚙ Invalid field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html', 'component', 'css' ], found [ 'spectrum css', 'web components', 'lit-element', 'lit-html' ]
│
├─ @spectrum-web-components/custom-vars-viewer@workspace:projects/css-custom-vars-viewer
│  ├─ ⚙ Invalid field author; expected 'Adobe', found 'najikahalsema'
│  ├─ ⚙ Missing field repository.type; expected 'git'
│  ├─ ⚙ Missing field repository.url; expected 'https://github.com/adobe/spectrum-web-components.git'
│  ├─ ⚙ Missing field repository.directory; expected 'projects/css-custom-vars-viewer'
│  ├─ ⚙ Missing field bugs.url; expected 'https://github.com/adobe/spectrum-web-components/issues'
│  ├─ ⚙ Missing field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html' ]
│  └─ ⚙ Missing field homepage; expected 'https://opensource.adobe.com/spectrum-web-components/'
│
├─ documentation@workspace:projects/documentation
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Missing field repository.type; expected 'git'
│  ├─ ⚙ Missing field repository.url; expected 'https://github.com/adobe/spectrum-web-components.git'
│  ├─ ⚙ Missing field repository.directory; expected 'projects/documentation'
│  ├─ ⚙ Missing field bugs.url; expected 'https://github.com/adobe/spectrum-web-components/issues'
│  ├─ ⚙ Missing field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html' ]
│  └─ ⚙ Missing field homepage; expected 'https://opensource.adobe.com/spectrum-web-components/'
│
├─ example-project-rollup@workspace:projects/example-project-rollup
│  ├─ ⚙ Invalid field author; expected 'Adobe', found 'example-app'
│  ├─ ⚙ Missing field repository.type; expected 'git'
│  ├─ ⚙ Missing field repository.url; expected 'https://github.com/adobe/spectrum-web-components.git'
│  ├─ ⚙ Missing field repository.directory; expected 'projects/example-project-rollup'
│  ├─ ⚙ Missing field bugs.url; expected 'https://github.com/adobe/spectrum-web-components/issues'
│  ├─ ⚙ Missing field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html' ]
│  └─ ⚙ Missing field homepage; expected 'https://opensource.adobe.com/spectrum-web-components/'
│
├─ example-project-webpack@workspace:projects/example-project-webpack
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Missing field repository.type; expected 'git'
│  ├─ ⚙ Missing field repository.url; expected 'https://github.com/adobe/spectrum-web-components.git'
│  ├─ ⚙ Missing field repository.directory; expected 'projects/example-project-webpack'
│  ├─ ⚙ Missing field bugs.url; expected 'https://github.com/adobe/spectrum-web-components/issues'
│  ├─ ⚙ Missing field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html' ]
│  └─ ⚙ Missing field homepage; expected 'https://opensource.adobe.com/spectrum-web-components/'
│
├─ @spectrum-web-components/story-decorator@workspace:projects/story-decorator
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field repository.directory; expected 'projects/story-decorator', found 'packages/story-decorator'
│  └─ ⚙ Missing field homepage; expected 'https://opensource.adobe.com/spectrum-web-components/'
│
├─ swc-templates@workspace:projects/templates
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Missing field repository.type; expected 'git'
│  ├─ ⚙ Missing field repository.url; expected 'https://github.com/adobe/spectrum-web-components.git'
│  ├─ ⚙ Missing field repository.directory; expected 'projects/templates'
│  ├─ ⚙ Missing field bugs.url; expected 'https://github.com/adobe/spectrum-web-components/issues'
│  ├─ ⚙ Missing field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html' ]
│  └─ ⚙ Missing field homepage; expected 'https://opensource.adobe.com/spectrum-web-components/'
│
├─ @types/swc@workspace:projects/types
│  ├─ ⚙ Missing field license; expected 'Apache-2.0'
│  ├─ ⚙ Missing field author; expected 'Adobe'
│  ├─ ⚙ Missing field repository.type; expected 'git'
│  ├─ ⚙ Missing field repository.url; expected 'https://github.com/adobe/spectrum-web-components.git'
│  ├─ ⚙ Missing field repository.directory; expected 'projects/types'
│  ├─ ⚙ Missing field bugs.url; expected 'https://github.com/adobe/spectrum-web-components/issues'
│  ├─ ⚙ Missing field keywords; expected [ 'design-system', 'spectrum', 'adobe', 'adobe-spectrum', 'web components', 'web-components', 'lit-element', 'lit-html' ]
│  └─ ⚙ Missing field homepage; expected 'https://opensource.adobe.com/spectrum-web-components/'
│
├─ @spectrum-web-components/vrt-compare@workspace:projects/vrt-compare
│  ├─ ⚙ Invalid field author; expected 'Adobe', found ''
│  ├─ ⚙ Invalid field repository.directory; expected 'projects/vrt-compare', found 'packages/vrt-compare'
│  └─ ⚙ Missing field homepage; expected 'https://opensource.adobe.com/spectrum-web-components/'
│
├─ @spectrum-web-components/base@workspace:tools/base
│  └─ ⚙ Invalid field author; expected 'Adobe', found ''
│
├─ @spectrum-web-components/bundle@workspace:tools/bundle
│  └─ ⚙ Invalid field author; expected 'Adobe', found ''
│
├─ @spectrum-web-components/grid@workspace:tools/grid
│  └─ ⚙ Invalid field author; expected 'Adobe', found ''
│
├─ @spectrum-web-components/opacity-checkerboard@workspace:tools/opacity-checkerboard
│  └─ ⚙ Invalid field author; expected 'Adobe', found ''
│
├─ @spectrum-web-components/reactive-controllers@workspace:tools/reactive-controllers
│  └─ ⚙ Invalid field author; expected 'Adobe', found ''
│
├─ @spectrum-web-components/shared@workspace:tools/shared
│  └─ ⚙ Invalid field author; expected 'Adobe', found ''
│
├─ @spectrum-web-components/styles@workspace:tools/styles
│  └─ ⚙ Invalid field author; expected 'Adobe', found ''
│
├─ @spectrum-web-components/theme@workspace:tools/theme
│  └─ ⚙ Invalid field author; expected 'Adobe', found ''
│
└─ @spectrum-web-components/truncated@workspace:tools/truncated
   └─ ⚙ Invalid field author; expected 'Adobe', found ''

Types of changes

  • Chore (minor updates related to the tooling or maintenance of the repository, does not impact compiled assets)

Checklist

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • If my change required a change to the documentation, I have updated the documentation in this pull request.
  • I have read the CONTRIBUTING document.
  • [n/a] I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have reviewed at the Accessibility Practices for this feature, see: Aria Practices

Best practices

This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against main.

Sorry, something went wrong.

@castastrophe castastrophe self-assigned this Mar 4, 2025
@castastrophe castastrophe requested a review from a team as a code owner March 4, 2025 22:29
Copy link

changeset-bot bot commented Mar 4, 2025

⚠️ No Changeset found

Latest commit: 1880c55

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

github-actions bot commented Mar 4, 2025

Branch preview

Review the following VRT differences

When a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:

If the changes are expected, update the current_golden_images_cache hash in the circleci config to accept the new images. Instructions are included in that file.
If the changes are unexpected, you can investigate the cause of the differences and update the code accordingly.

Copy link

github-actions bot commented Mar 4, 2025

Tachometer results

Currently, no packages are changed by this PR...

Copy link

github-actions bot commented Mar 4, 2025

Lighthouse scores

Category Latest (report) Main (report) Branch (report)
Performance 0.99 0.99 0.99
Accessibility 1 1 1
Best Practices 1 1 1
SEO 1 0.92 0.92
PWA 1 1 1
What is this?

Lighthouse scores comparing the documentation site built from the PR ("Branch") to that of the production documentation site ("Latest") and the build currently on main ("Main"). Higher scores are better, but note that the SEO scores on Netlify URLs are artifically constrained to 0.92.

Transfer Size

Category Latest Main Branch
Total 242.516 kB 229.40 kB 🏆 229.92 kB
Scripts 60.588 kB 54.164 kB 🏆 54.484 kB
Stylesheet 45.918 kB 40.743 kB 🏆 40.897 kB
Document 6.248 kB 5.53 kB 5.527 kB 🏆
Font 126.811 kB 126.613 kB 🏆 126.663 kB

Request Count

Category Latest Main Branch
Total 52 52 52
Scripts 41 41 41
Stylesheet 5 5 5
Document 1 1 1
Font 2 2 2

@coveralls
Copy link
Collaborator

coveralls commented Mar 4, 2025

Pull Request Test Coverage Report for Build 14064918594

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.003%) to 97.98%

Totals Coverage Status
Change from base Build 14064793144: -0.003%
Covered Lines: 33686
Relevant Lines: 34184

💛 - Coveralls

yarn.config.cjs Outdated
Comment on lines 105 to 106
workspace.set('main', './src/index.js');
workspace.set('module', './src/index.js');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of our packages do not have a different entry point other than index.js (e.g. clear-button or opacity-checkerboard), so we might need to account for these exceptions.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a couple different ways to handle it, would love your thoughts:

  1. We wrap the set command in a check first so it only adds the value if it's not already set. This prevents overwriting a value however it also negates the benefit of being able to manage the consistency of all packages.
  2. We add an exclusion for those packages that we know have exceptions (ideal if those exceptions are consistent to each other).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call! I think having an explicit list of exceptions (like clear-button and opacity-checkerboard etc) makes sense while keeping everything else consistent. That way, we don’t override anything we shouldn’t. What do you think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rubencarvalho Still looking for your feedback when you have a moment. Thanks!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't heard back so I went ahead and implemented option 2 above.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, sorry - this slipped under my radar. Yes, I would’ve voted for option 2, so thank you for that!

@castastrophe castastrophe force-pushed the castastrophe/chore-add-constraints-settings branch 2 times, most recently from 31281f7 to eb1f4d4 Compare March 5, 2025 21:47
* Fetch a list of all the component workspaces using a glob pattern
* @type {string[]} components
*/
const components = fg.sync('packages/*', {
Copy link
Contributor

@Rajdeepc Rajdeepc Mar 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fg.sync() is called synchronously here, which might block execution since there are a lot of packages.
can we use an async function and await fg()

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no difference here between using await or sync because the list of components must be present to validate against in the functions below. This is a preference rather than an important requirement to update during code review. There is the same amount of "blocking execution" as you say, between awaiting an async function as there is using the synchronous version of a function. You only gain benefits from asynchronous if you are running tasks against it as the information becomes available, which we are not.

const localPackages = Object.keys(
workspace.manifest.peerDependencies
)
.filter((pkg) => Yarn.workspace({ ident: pkg }))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yarn.workspace({ ident: pkg }) is called twice on a single package here. can we reuse the result and call it once?

const localPackages = Object.keys(workspace.manifest.peerDependencies)
    .map((pkg) => Yarn.workspace({ ident: pkg }))
    .filter(Boolean);

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my note on using the standard constraints syntax and tooling. This is not a node script. https://yarnpkg.com/features/constraints

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yarn.workspace({ ident: pkg }) returns a filtered result based on the object keys specific to the workspace passed into the function. You can't call it "once" as you say and get the same result.

* Process the components workspaces with component-specific configuration
*/
if (isComponent) {
const folderName = workspace.cwd?.split('/')?.[1];
Copy link
Contributor

@Rajdeepc Rajdeepc Mar 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A more robust approach like this path.basename(workspace.cwd) would be helpful?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's important to distinguish the contraints syntax from a node script. This is not a node script. This is a yarn constraints file that uses node syntax. Please do read up on constraints in the documentation: https://yarnpkg.com/features/constraints

Comment on lines +74 to +81
'design-system',
'spectrum',
'adobe',
'adobe-spectrum',
'web components',
'web-components',
'lit-element',
'lit-html',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add the values to a new array like baseKeyWords and use this? Saves re-allocation of new array everytime keywords is called!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minimally beneficial and I'm not sure the abstraction is worth it. If the script was slow to run, I'd say the optimization makes sense but I'm not sure it's worth more abstraction in an already foreign syntax to most contributors.

@castastrophe castastrophe force-pushed the castastrophe/chore-add-constraints-settings branch 2 times, most recently from 2b8029d to 6377218 Compare March 10, 2025 13:56
@castastrophe castastrophe force-pushed the castastrophe/chore-add-constraints-settings branch 3 times, most recently from 56e59f7 to 4c0f84b Compare March 19, 2025 17:05
@castastrophe castastrophe requested review from Rajdeepc and rubencarvalho and removed request for Rajdeepc March 19, 2025 17:18
@castastrophe castastrophe force-pushed the castastrophe/chore-add-constraints-settings branch 2 times, most recently from 1c13a2e to 14338ec Compare March 25, 2025 14:03
Copy link
Contributor

@rubencarvalho rubencarvalho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 🚢

Copy link
Contributor

@Rajdeepc Rajdeepc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@castastrophe castastrophe force-pushed the castastrophe/chore-add-constraints-settings branch from 538b727 to 1880c55 Compare March 25, 2025 16:24
@castastrophe castastrophe merged commit 04195e7 into main Mar 25, 2025
14 of 24 checks passed
@castastrophe castastrophe deleted the castastrophe/chore-add-constraints-settings branch March 25, 2025 16:29
@castastrophe castastrophe mentioned this pull request Mar 25, 2025
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants