Skip to content

Commit 8d520cb

Browse files
committed
fix(compat): react-scripts
1 parent 870ab9f commit 8d520cb

File tree

2 files changed

+40
-3
lines changed

2 files changed

+40
-3
lines changed

.yarn/versions/778bfffd.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
releases:
2+
"@yarnpkg/cli": patch
3+
"@yarnpkg/plugin-compat": patch
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-nm"
12+
- "@yarnpkg/plugin-npm-cli"
13+
- "@yarnpkg/plugin-pack"
14+
- "@yarnpkg/plugin-patch"
15+
- "@yarnpkg/plugin-pnp"
16+
- "@yarnpkg/plugin-pnpm"
17+
- "@yarnpkg/plugin-stage"
18+
- "@yarnpkg/plugin-typescript"
19+
- "@yarnpkg/plugin-version"
20+
- "@yarnpkg/plugin-workspace-tools"
21+
- "@yarnpkg/builder"
22+
- "@yarnpkg/core"
23+
- "@yarnpkg/doctor"

packages/plugin-compat/sources/extensions.ts

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -790,19 +790,33 @@ export const packageExtensions: Array<[string, PackageExtensionData]> = [
790790
},
791791
}],
792792
// https://github.com/JuniorTour/vue-template-babel-compiler/pull/40
793-
[`vue-template-babel-compiler@*`, {
793+
[`vue-template-babel-compiler@<1.2.0`, {
794794
peerDependencies: {
795795
[`vue-template-compiler`]: `^2.6.0`,
796796
},
797797
}],
798-
[`@parcel/transformer-image@*`, {
798+
// https://github.com/parcel-bundler/parcel/pull/7977
799+
[`@parcel/transformer-image@<2.5.0`, {
799800
peerDependencies: {
800801
[`@parcel/core`]: `*`,
801802
},
802803
}],
803-
[`@parcel/transformer-js@*`, {
804+
// https://github.com/parcel-bundler/parcel/pull/7977
805+
[`@parcel/transformer-js@<2.5.0`, {
804806
peerDependencies: {
805807
[`@parcel/core`]: `*`,
806808
},
807809
}],
810+
// This doesn't have an upstream PR.
811+
// The auto types causes two instances of eslint-config-react-app,
812+
// one that has access to @types/eslint and one that doesn't.
813+
// ESLint doesn't allow the same plugin to show up multiple times so it throws.
814+
// As a temporary workaround until create-react-app fixes their ESLint
815+
// setup we make eslint a peer dependency /w fallback.
816+
// TODO: Lock the range when create-react-app fixes their ESLint setup
817+
[`react-scripts@*`, {
818+
peerDependencies: {
819+
[`eslint`]: `*`,
820+
},
821+
}],
808822
];

0 commit comments

Comments
 (0)