Skip to content

Run pnpm nuxt upgrade in monorepo #951

@dwightjack

Description

@dwightjack

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions