prettier / prettier/prettier-cli

"[error] No files matching the given patterns were found."

Open
#79 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.