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.
I had this in my
package.json:When I use it with the experimental cli…
… I get this error:
When I change the code to …
… it works fine again.