Skip to content

Commit

Permalink
pnpm: Add pnpmfile hack for outdated estimo deps (#40549)
Browse files Browse the repository at this point in the history
Estimo doesn't seem to be actively maintained despite having strictly
versioned deps. Add a pnpmfile hack to change these to caret deps, so we
can update `ws` and `nanoid` to versions that don't have dependabot
complaining.
  • Loading branch information
anomiex authored Dec 10, 2024
1 parent ceebd52 commit 3c012a8
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 87 deletions.
10 changes: 10 additions & 0 deletions .pnpmfile.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@ function fixDeps( pkg ) {
}
}

// Seemingly unmaintained upstream, and has strict deps that are outdated.
// https://github.com/mbalabash/estimo/issues/50
if ( pkg.name === 'estimo' ) {
for ( const [ dep, ver ] of Object.entries( pkg.dependencies ) ) {
if ( ver.match( /^\d+(\.\d+)+$/ ) ) {
pkg.dependencies[ dep ] = '^' + ver;
}
}
}

// Outdated dependency.
// No upstream bug link yet.
if ( pkg.name === 'rollup-plugin-postcss' && pkg.dependencies.cssnano === '^5.0.1' ) {
Expand Down
123 changes: 36 additions & 87 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3c012a8

Please sign in to comment.