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

[Proposal] Pass Arguments Without Double Dash #986

Open
ObliviousHarmony opened this issue Dec 6, 2023 · 0 comments
Open

[Proposal] Pass Arguments Without Double Dash #986

ObliviousHarmony opened this issue Dec 6, 2023 · 0 comments

Comments

@ObliviousHarmony
Copy link
Contributor

Problem

When using pnpm there is an expectation that any content after the name of the script, both position arguments and options, will be passed to the underlying script. This has proven useful, however, it has also set a precedent that causes problems with scripts that use wireit. It would be great if there was some way to tell wireit that you want it to pass anything given to it after a double-dash to the underlying script instead of consuming it.

Solution

One way to do this would be to add a new option to the configuration. Something like argumentPassthrough that would treat all arguments given to wireit as if they were passed using a double dash. This would allow us to support commands like pnpm test tests/file.spec.js --verbose without forcing a distinction between another command like pnpm lint that does not use wireit and does not require the double dash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant