install-peerdeps icon indicating copy to clipboard operation
install-peerdeps copied to clipboard

yarn pass through arguments

Open jmjpro opened this issue 5 years ago • 3 comments

I saw https://github.com/nathanhleung/install-peerdeps/issues/24 but I think the functionality in yarn has changed: when I try to run install-peerdeps eslint-config-airbnb -d -Y -W I get Running this command will add the dependency to the workspace root rather than the workspace itself, 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 --ignore-workspace-root-check). so I know the the -W isn't get passed through.

jmjpro avatar Dec 10 '19 13:12 jmjpro

If you want to pass additional flags to a sub command, usually you’d do something like -- -W - does that work?

ljharb avatar Dec 10 '19 15:12 ljharb

nope.

On Tue, Dec 10, 2019 at 5:16 PM Jordan Harband [email protected] wrote:

If you want to pass additional flags to a sub command, usually you’d do something like -- -W - does that work?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nathanhleung/install-peerdeps/issues/57?email_source=notifications&email_token=AAY3DDK5SWKM2UEJQYO2HZ3QX6XGNA5CNFSM4JY6WRFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGPS7HY#issuecomment-564080543, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAY3DDIYWIGWPB3RA2TP5O3QX6XGNANCNFSM4JY6WRFA .

jmjpro avatar Dec 10 '19 15:12 jmjpro

Can you try:

install-peerdeps eslint-config-airbnb -d -Y --extra-args "-W"

See more info about the --extra-args flag under https://github.com/nathanhleung/install-peerdeps#usage

nathanhleung avatar Dec 13 '19 19:12 nathanhleung