Open kevindice opened 1 year ago
Hi @pmadruga - I'm revisiting this after using my local yarn patch
of this package for a while. Is this a feature you might like to include in the scope of this package? If so, I'd be happy to make a contribution. Otherwise, I can formalize my work into a new package and publish separately. A 'no' is perfectly fine if you'd like to keep this one more focused/smaller scoped.
@kevindice just curious but why don't you just have automations can run this tool for each package you want to run it for individually? that way you could run it for only one package, for a handful of watched packages, or for all packages. if you have to run this globally you'll need to dynamically pass params of which directories to run it for, which seems unnecessary given that each package should have its own package.json and node_modules folder.
I'm working with an Nx monorepo of React Native apps and would like to modify this tool to support running the global cleanup commands once while running the app-specific cleanup commands once for each app.
I'm prototyping this locally but can send up a PR later this week.
What this generally entails:
clean-project-auto-monorepo
plugin definition forreact-native-cli
directory
argument to theexecuteTask
function which gets passed on as thecwd
option for thespawn
call so that the app-specific commands get run from within their respective directories.