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

The flag --ignore can only be set once #456

Open
smurf667 opened this issue Jul 20, 2022 · 4 comments · May be fixed by #465
Open

The flag --ignore can only be set once #456

smurf667 opened this issue Jul 20, 2022 · 4 comments · May be fixed by #465

Comments

@smurf667
Copy link

I used to run npm-check -i <glob1> -i <glob2> .... Now this produces the error message "The flag --ignore can only be set once". The ignore globs are supposed to be an array, so why can't I do this anymore? How should I ignore multiple, different globs?

@cristian-sima
Copy link

same here

@aarongoldenthal
Copy link

It looks like this was introduced in v6 with 3c8798d and the meow update to v9, which added an isMultiple property to flags that defaults to false (in meow v7).

@jandppw
Copy link

jandppw commented Jul 25, 2022

Workaround: use a glob pattern:

in package.json, scripts, e.g.:

    "pretest": "npm-check -i \"{node-fetch,puppeteer{,-core}}\"; npm outdated || exit 0",

@smurf667 smurf667 linked a pull request Aug 24, 2022 that will close this issue
@cmawhorter
Copy link

the workaround from @jandppw worked great for me in node14 but in node16 something changed and i think it needs to be double quoted now npm-check -i '"{...}"':

    "pretest": "npm-check -i '\"{node-fetch,puppeteer{,-core}}\"'; npm outdated || exit 0",

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

Successfully merging a pull request may close this issue.

5 participants