cli
cli copied to clipboard
Run pnpm nuxt upgrade in monorepo
I have a pnpm monorepo including a Nuxt3 application with the following structure:
packages/
app/
package.json <-- nuxt is defined here
pnpm-lock.yaml
If I run pnpm --filter=app exec nuxt upgrade --dedupe, the Nuxt CLI cannot locate the lock file.
$ pnpm --filter=app exec nuxt upgrade --dedupe
ℹ Package manager: pnpm 9.3.0
ℹ Current Nuxt version: 3.17.5
ERROR Unable to find any lock files in /.../packages/app
My guess is that the command should traverse up to locate the correct lock file. Looking at the source code, I wonder if this might even be an issue with the https://github.com/unjs/nypm package 🤔
Any hint on how to solve the issue?