Skip to content

fix: add catalog settings to yarnrc schema#7179

Open
cyphercodes wants to merge 1 commit into
yarnpkg:masterfrom
cyphercodes:fix/yarnrc-catalog-schema
Open

fix: add catalog settings to yarnrc schema#7179
cyphercodes wants to merge 1 commit into
yarnpkg:masterfrom
cyphercodes:fix/yarnrc-catalog-schema

Conversation

@cyphercodes
Copy link
Copy Markdown

What's the problem this PR addresses?

Resolves #7178.

The published .yarnrc.yml JSON schema doesn't include the catalog and catalogs settings from @yarnpkg/plugin-catalog, so editors cannot validate or autocomplete them.

How did you fix it?

Added catalog and catalogs entries to packages/docusaurus/static/configuration/yarnrc.json, matching the map shapes defined by the catalog plugin.

Checklist

  • I have read the Contributing Guide.
  • I have set the packages that need to be released for my changes to be effective. (Not applicable: static schema/documentation metadata only.)
  • I will check that all automated PR checks pass before the PR gets reviewed.

Validation:

  • python3 JSON parse + assertions for catalog / catalogs schema shapes
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSON schema is missing catalog and catalogs keys

1 participant