Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward additional flags to package manager add command #111

Open
brc-dd opened this issue Oct 29, 2024 · 0 comments
Open

Forward additional flags to package manager add command #111

brc-dd opened this issue Oct 29, 2024 · 0 comments

Comments

@brc-dd
Copy link

brc-dd commented Oct 29, 2024

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:

@lucacasonato lucacasonato transferred this issue from jsr-io/jsr Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Triage
Development

No branches or pull requests

1 participant