Skip to content
New issue

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

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

Already on GitHub? # to your account

Filesystem matches are interfering with script discovery #198

Open
jonathanmorley opened this issue Jan 29, 2021 · 2 comments
Open

Filesystem matches are interfering with script discovery #198

jonathanmorley opened this issue Jan 29, 2021 · 2 comments

Comments

@jonathanmorley
Copy link

jonathanmorley commented Jan 29, 2021

If you have a script block like

"scripts": {
    "lint:prettier": "prettier",
    "lint": "run-p lint:*"
}

And a file beside the package.json called lint:d, then running npm lint will throw:

ERROR: Task not found: "lint:d"

This can be worked around by using "lint": "run-p lint:\\*", but I don't think that should be necessary

@yads
Copy link

yads commented Feb 8, 2021

For me you don't even need an additional file, I'm just getting a no matches lint:* found error, unless I use your \\* modifier. This seems to only happen with yarn2. Running in yarn1, it works as expected.

@Robin-Hoodie
Copy link

@yads You might want to take a look at #200

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

No branches or pull requests

3 participants