prettier / prettier/prettier-cli
"[error] No files matching the given patterns were found."
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 43
- Forks
- 10
- Avg merge
- 18m
- Merged PRs (30d)
- 1
Description
I had this in my package.json:
"format": "prettier --ignore-path .gitignore \"(src|mailers)/**/*.+(ts|js|tsx|md)\" --write",
When I use it with the experimental cli…
"format": "prettier --experimental-cli --write --ignore-path .gitignore \"(src|mailers)/**/*.+(ts|js|tsx|md)\" --write",
… I get this error:
% npm run format
[reponame@0.2.0](vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-sandbox/workbench/workbench.html) format
prettier --experimental-cli --write --ignore-path .gitignore "(src|mailers)/**/*.+(ts|js|tsx|md)"
[error] No files matching the given patterns were found.
When I change the code to …
"format": "prettier --experimental-cli --write --ignore-path .gitignore \"src/**/*.{ts,js,tsx,md}\" \"mailers/**/*.{ts,js,tsx,md}\"",
… it works fine again.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the report from the package.json format command using the experimental CLI and the grouped (src|mailers) pattern. Compare it with the working command that passes separate src and mailers globs; done means the original pattern no longer produces “No files matching the given patterns were found.”
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100