-
Notifications
You must be signed in to change notification settings - Fork 247
Description
Is there an existing feature request for this?
- I have searched the existing issues.
Command
No response
Description
In v5.1.0 the format command was introduced as a default command. However, our team already had a format command with some specifics used that are not supported by default filtering (AFAIK). We could run it by invoking either melos run format or melos format. In the latter case, melos knew that if we had a script named format it should run that. However, when v5.1.0 was introduced, the built-in command made it so that we could no longer run our format command via melos format.
This means we now need to change our command to something like fooFormat to avoid the collision if we indeed want melos fooFormat to be possible. This makes DX slightly worse/more confusing, and it would be ideal if we could override the default behavior with our own behavior by way of defining the script in melos.yaml.
Expected behavior: Defining a script foo in melos.yaml would override default behavior of melos foo, if any exists, such that you can run melos foo or melos run foo and have the expected behavior.
Current behavior: Running melos foo will have potentially different behavior than running melos run foo if a built-in foo command exists and functions differently.
Please let me know if I can offer any other details to make my request more clear!
Reasoning
I hope my previous answer addressed my reasoning!
Additional context and comments
No response
Other
- I'm interested in working on a PR for this.