Skip to content

react-native-git-upgrade uses npm inside yarn workspaces #21156

@mike-marcacci

Description

@mike-marcacci

Description

react-native-git-upgrade fails to detect usage of yarn when the react-native app root is a yarn workspace. Currently is looks for yarn.lock in the package root which won't exist if it's in a workspace.

Obviously, since NPM doesn't support workspaces, it's extra important that yarn is used in these situations.

However, I'm not exactly sure what the best strategy is here... should we simply walk up the tree until we find a yarn.lock file? Does yarn itself export a utility to detect workspaces?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions