Skip to content

Commit c3494ae

Browse files
committed
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.
1 parent 4e4e76c commit c3494ae

File tree

10 files changed

+969
-1
lines changed

10 files changed

+969
-1
lines changed

.pnp.cjs

Lines changed: 64 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/extensions/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# `@yarnpkg/extensions`
2+
3+
This package contains package extensions that fix known issues in the ecosystem
4+
5+
## Install
6+
7+
```
8+
yarn add @yarnpkg/extensions
9+
```

packages/extensions/jest.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// plugin-compat is tested separately, as it relies on external resources
2+
// and it takes a long time for them to be fetched
3+
4+
module.exports = Object.assign({}, require(`@yarnpkg/monorepo/jest.config.js`), {
5+
modulePathIgnorePatterns: [],
6+
});

packages/extensions/package.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "@yarnpkg/extensions",
3+
"version": "0.0.0",
4+
"license": "BSD-2-Clause",
5+
"main": "./sources/index.ts",
6+
"peerDependencies": {
7+
"@yarnpkg/core": "workspace:^"
8+
},
9+
"devDependencies": {
10+
"@yarnpkg/core": "workspace:^",
11+
"@yarnpkg/monorepo": "workspace:^"
12+
},
13+
"repository": {
14+
"type": "git",
15+
"url": "ssh://[email protected]/yarnpkg/berry.git",
16+
"directory": "packages/extensions"
17+
},
18+
"scripts": {
19+
"postpack": "rm -rf lib",
20+
"prepack": "run build:compile \"$(pwd)\"",
21+
"test:extensions": "run test:unit --config \"$(pwd)/jest.config.js\"",
22+
"debug:patch": "node -r @yarnpkg/monorepo/scripts/setup-ts-execution extra/debugPatch \"$INIT_CWD\""
23+
},
24+
"publishConfig": {
25+
"main": "./lib/index.js",
26+
"typings": "./lib/index.d.ts"
27+
},
28+
"files": [
29+
"/lib/**/*"
30+
],
31+
"engines": {
32+
"node": ">=14.15.0"
33+
}
34+
}

0 commit comments

Comments
 (0)