Skip to content

Commit 646130c

Browse files
zkochanarcanismerceyz
committed
feat: move compat database to separate package (#4436)
* feat: move compat database to separate package The packageExtensions compat database is useful for pnpm as well. By moving it to a separate package, we can use it in pnpm and recommend the pnpm users to extend the database as well. * Renames packages/extensions -> packages/yarnpkg-extensions * Fixes constraints * refactor: re-use extensions * chore: remove unnecessary test * chore: start at `1.0.0` Co-authored-by: Maël Nison <[email protected]> Co-authored-by: merceyz <[email protected]>
1 parent dcd3d3f commit 646130c

File tree

9 files changed

+934
-828
lines changed

9 files changed

+934
-828
lines changed

.pnp.cjs

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.yarn/versions/1633b796.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
releases:
2+
"@yarnpkg/extensions": minor
3+
4+
declined:
5+
- "@yarnpkg/plugin-compat"

packages/gatsby/static/configuration/yarnrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@
529529
},
530530
"packageExtensions": {
531531
"_package": "@yarnpkg/core",
532-
"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.",
532+
"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.",
533533
"type": "object",
534534
"patternProperties": {
535535
"^(?:@([^/]+?)/)?([^/]+?)(?:@(.+))$": {

packages/plugin-compat/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"@yarnpkg/core": "workspace:^",
88
"@yarnpkg/plugin-patch": "workspace:^"
99
},
10+
"dependencies": {
11+
"@yarnpkg/extensions": "workspace:^"
12+
},
1013
"devDependencies": {
1114
"@types/lodash-es": "4.17.4",
1215
"@types/resolve": "^1.17.1",

0 commit comments

Comments
 (0)