Skip to content

Upgrade Command should run from root regardless of current directory #1659

@thedavidprice

Description

@thedavidprice

If a user runs yarn rw upgrade ... from a directory other than project root, there are cases where the root package.json is not handled correctly by yarn ('cause yarn is a mess when it comes to this command).

We need to ensure Execa has cwd set whenever it is called:
https://github.com/redwoodjs/redwood/blob/main/packages/cli/src/commands/upgrade.js

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions