Skip to content

Forward additional flags to package manager add command #111

Open
@brc-dd

Description

@brc-dd

Currently in monorepo setups, if you do pnpm dlx jsr add @std/cache, it shows some errors like these:

 ERR_PNPM_ADDING_TO_ROOT  Running this command will add the dependency to the workspace root, which might not be what you want - if you really meant it, make it explicit by running this command again with the -w flag (or --workspace-root). If you don't want to see this warning anymore, you may set the ignore-workspace-root-check setting to true.

If I pass -w, it gives this error instead:

TypeError [ERR_PARSE_ARGS_UNKNOWN_OPTION]: Unknown option '-w'. To specify a positional argument starting with a '-', place it at the end of the command after '--', as in '-- "-w"'

Reproduction:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions