Skip to content

Commit 4e49f74

Browse files
authored
Improves extensions (#872)
* Improves extensions * Adds versions
1 parent 44eaba9 commit 4e49f74

File tree

2 files changed

+41
-4
lines changed

2 files changed

+41
-4
lines changed

.yarn/versions/1644cb2b.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
releases:
2+
"@yarnpkg/cli": prerelease
3+
"@yarnpkg/plugin-compat": prerelease
4+
5+
declined:
6+
- "@yarnpkg/plugin-constraints"
7+
- "@yarnpkg/plugin-dlx"
8+
- "@yarnpkg/plugin-essentials"
9+
- "@yarnpkg/plugin-init"
10+
- "@yarnpkg/plugin-interactive-tools"
11+
- "@yarnpkg/plugin-node-modules"
12+
- "@yarnpkg/plugin-npm-cli"
13+
- "@yarnpkg/plugin-pack"
14+
- "@yarnpkg/plugin-patch"
15+
- "@yarnpkg/plugin-pnp"
16+
- "@yarnpkg/plugin-stage"
17+
- "@yarnpkg/plugin-typescript"
18+
- "@yarnpkg/plugin-version"
19+
- "@yarnpkg/plugin-workspace-tools"
20+
- "@yarnpkg/core"
21+
- "@yarnpkg/doctor"

packages/plugin-compat/sources/extensions.ts

+20-4
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,23 @@ export const packageExtensions: Array<[string, any]> = [
66
// https://github.com/SamVerschueren/stream-to-observable/pull/5
77
[`@samverschueren/stream-to-observable@*`, {
88
peerDependenciesMeta: {
9-
[`rxjs`]: `*`,
10-
[`zenObservable`]: `*`,
9+
[`rxjs`]: {
10+
optional: true,
11+
},
12+
[`zenObservable`]: {
13+
optional: true,
14+
},
1115
},
1216
}],
1317
// https://github.com/sindresorhus/any-observable/pull/25
1418
[`any-observable@*`, {
1519
peerDependenciesMeta: {
16-
[`rxjs`]: `*`,
17-
[`zenObservable`]: `*`,
20+
[`rxjs`]: {
21+
optional: true,
22+
},
23+
[`zenObservable`]: {
24+
optional: true,
25+
},
1826
},
1927
}],
2028
// https://github.com/keymetrics/pm2-io-agent/pull/125
@@ -23,4 +31,12 @@ export const packageExtensions: Array<[string, any]> = [
2331
[`debug`]: `*`,
2432
},
2533
}],
34+
// https://github.com/visionmedia/debug/pull/727
35+
[`debug@*`, {
36+
peerDependenciesMeta: {
37+
[`supports-color`]: {
38+
optional: true,
39+
},
40+
},
41+
}],
2642
];

0 commit comments

Comments
 (0)