Closed ronnnnn closed 2 weeks ago
This does not implement any of the suggested solutions in #661, and I don't think we want to add hooks to these built-in commands (you can very easily create a Melos script that invokes the built-in command and then your own command instead).
Solution number two or three in that issue are the preferred ones, where we simply give a warning and/or override the built-in command.
You're right, we can add new commands to invoke built-in commands. However, I think adding hooks would make migration easier for v4 users.
I understand your policy regarding these built-in commands, and it doesn't seem to address the issue at hand. Therefore, I'm closing this request. Thank you.
Description
Melos versions 5.0.0 and 5.1.0 introduced built-in commands (format and analyze). While I appreciate the efficiency of these new commands, as noted in this comment, remembering them can be challenging. Therefore, I propose adding a hooks feature that allows users to automatically trigger custom commands alongside the built-in format and analyze commands.
Related issue #661
Type of Change
feat
-- New feature (non-breaking change which adds functionality)fix
-- Bug fix (non-breaking change which fixes an issue)!
-- Breaking change (fix or feature that would cause existing functionality to change)refactor
-- Code refactorci
-- Build configuration changedocs
-- Documentationchore
-- Chore