Commit 029178d 1 parent 123e80d commit 029178d Copy full SHA for 029178d
File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -579,17 +579,18 @@ export async function applyPackageOverrides(
579
579
580
580
if ( pm === 'pnpm' ) {
581
581
const version = await $$ `pnpm --version`
582
- // avoid bug with absolute overrides in pnpm 7.18.0
583
- if ( version === '7.18.0' ) {
582
+ // avoid bug with peer dependency overrides in pnpm 10.0-10.1.0
583
+ // TODO: change the override to 10.1.1 after it is released
584
+ if ( version === '10.0.0' || version === '10.1.0' ) {
584
585
console . warn (
585
- ' detected pnpm@7.18.0 , changing pkg.packageManager and pkg.engines.pnpm to enforce use of pnpm@7.18.1' ,
586
+ ` detected pnpm@${ version } , changing pkg.packageManager and pkg.engines.pnpm to enforce use of pnpm@9.15.5` ,
586
587
)
587
- // corepack reads this and uses pnpm 7.18.1 then
588
- pkg . packageManager = 'pnpm@7.18.1 '
588
+ // corepack reads this and uses pnpm 9.15.5 then
589
+ pkg . packageManager = 'pnpm@9.15.5 '
589
590
if ( ! pkg . engines ) {
590
591
pkg . engines = { }
591
592
}
592
- pkg . engines . pnpm = '7.18.1 '
593
+ pkg . engines . pnpm = '9.15.5 '
593
594
}
594
595
// if (!pkg.devDependencies) {
595
596
// pkg.devDependencies = {}
You can’t perform that action at this time.
0 commit comments