Skip to content

Conversation

@Jarred-Sumner
Copy link
Collaborator

@Jarred-Sumner Jarred-Sumner commented Feb 16, 2023

yarn does this:

{
    "workspaces": {
        "packages": [
           "my-package"
        ]
    }
}

npm does this:

{
     "workspaces": [ "foo" ]
}

let's support both, so that people using yarn workspaces (which are more popular than npm workspaces, afaict) don't see an error

there are no tests for this PR

@Jarred-Sumner Jarred-Sumner marked this pull request as ready for review February 16, 2023 04:13
@Jarred-Sumner Jarred-Sumner added the bun install Something that relates to the npm-compatible client label Feb 16, 2023
Copy link
Contributor

@alexlamsl alexlamsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM, minor comment on the added test.

@Jarred-Sumner Jarred-Sumner merged commit 5007c6b into main Feb 16, 2023
@Jarred-Sumner Jarred-Sumner deleted the jarred/support-workspaces-packages branch February 16, 2023 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bun install Something that relates to the npm-compatible client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants