-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
[Bug]: Why is prettier not ignoring node_modules folder? #313
Comments
What does prettier do when you run it outside of Bazel? I would expect an exclude for |
@alexeagle I work with @Mamadou888. We do not currently have an explicit ignore for |
Maybe you were missing a |
@alexeagle prettier runs just fine when we run it outside of Bazel (it ignores the |
@Mamadou888 hm, can you find a way to repro? I'm not seeing the same thing. Ideally using the example in this repo will save you time instead of making a new one |
What happened?
I run
bazel run //:format path_to_dir_to_check
, where format is an alias to//tools/format:format.check
, which subsequently runs theformat_multirun
, wherejavascript = ":prettier"
. The results I receive in the terminal are[error] No matching files. Patterns: path_to_dir_to_check/node_modules/
, followed by a list of node_modules it could not pattern match.What I expect to happen is a successful prettier check of the
path_to_dir_to_check
with the results of the check.Version
Development (host) and target OS/architectures: Darwin Kernel Version 22.6.0 arm64
Output of
bazel --version
: aspect 5.9.36Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:Language(s) and/or frameworks involved: Typescript, Javascript
How to reproduce
Running `bazel run //:format path_to_dir_to_check` at the root directory.
Any other information?
Example output after running the command
The text was updated successfully, but these errors were encountered: