Skip to content

feat: move compat database to separate package #4436

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

Merged
merged 6 commits into from
May 8, 2022
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
48 changes: 48 additions & 0 deletions .pnp.cjs

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .yarn/versions/1633b796.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
releases:
"@yarnpkg/extensions": minor

declined:
- "@yarnpkg/plugin-compat"
2 changes: 1 addition & 1 deletion packages/gatsby/static/configuration/yarnrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@
},
"packageExtensions": {
"_package": "@yarnpkg/core",
"description": "Some packages may have been specified incorrectly with regard to their dependencies - for example with one dependency being missing, causing Yarn to refuse it the access. The `packageExtensions` fields offer a way to extend the existing package definitions with additional information. If you use it, consider sending a PR upstream and contributing your extension to the [`plugin-compat` database](https://github.com/yarnpkg/berry/blob/master/packages/plugin-compat/sources/extensions.ts).\nNote: This field is made to add dependencies; if you need to rewrite existing ones, prefer the [`resolutions`](/configuration/manifest#resolutions) field.",
"description": "Some packages may have been specified incorrectly with regard to their dependencies - for example with one dependency being missing, causing Yarn to refuse it the access. The `packageExtensions` fields offer a way to extend the existing package definitions with additional information. If you use it, consider sending a PR upstream and contributing your extension to the [`plugin-compat` database](https://github.com/yarnpkg/berry/blob/master/packages/extensions/sources/index.ts).\nNote: This field is made to add dependencies; if you need to rewrite existing ones, prefer the [`resolutions`](/configuration/manifest#resolutions) field.",
"type": "object",
"patternProperties": {
"^(?:@([^/]+?)/)?([^/]+?)(?:@(.+))$": {
Expand Down
3 changes: 3 additions & 0 deletions packages/plugin-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"@yarnpkg/core": "workspace:^",
"@yarnpkg/plugin-patch": "workspace:^"
},
"dependencies": {
"@yarnpkg/extensions": "workspace:^"
},
"devDependencies": {
"@types/lodash-es": "4.17.4",
"@types/resolve": "^1.17.1",
Expand Down
Loading