Skip to content

Commit

Permalink
chore: prefer pnpm 10.2.0 now that it's released
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Feb 5, 2025
1 parent 029178d commit 6e99c4d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,17 +580,16 @@ export async function applyPackageOverrides(
if (pm === 'pnpm') {
const version = await $$`pnpm --version`
// avoid bug with peer dependency overrides in pnpm 10.0-10.1.0
// TODO: change the override to 10.1.1 after it is released
if (version === '10.0.0' || version === '10.1.0') {
console.warn(
`detected pnpm@${version}, changing pkg.packageManager and pkg.engines.pnpm to enforce use of pnpm@9.15.5`,
`detected pnpm@${version}, changing pkg.packageManager and pkg.engines.pnpm to enforce use of pnpm@10.2.0`,
)
// corepack reads this and uses pnpm 9.15.5 then
pkg.packageManager = 'pnpm@9.15.5'
// corepack reads this and uses pnpm 10.2.0 then
pkg.packageManager = 'pnpm@10.2.0'
if (!pkg.engines) {
pkg.engines = {}
}
pkg.engines.pnpm = '9.15.5'
pkg.engines.pnpm = '10.2.0'
}
// if (!pkg.devDependencies) {
// pkg.devDependencies = {}
Expand Down

0 comments on commit 6e99c4d

Please sign in to comment.