cristianoliveira / funzzy

A lightweight blazingly fast file watcher.
MIT License
239 stars 11 forks source link

feat: allows setting a working dir #196

Open cristianoliveira opened 3 months ago

cristianoliveira commented 3 months ago

This is a need that I feel everytime I need to work with monorepos, sometimes adapting the scripts to run from the root folder takes longer than just running funzzy inside of each project

 - name: setup install
  workdir: ./myapp/ # This would be similar to `cd ./myapp/ && npm install`
  run: npm install
  run_on_init: true
  change: package.json
cristianoliveira commented 3 months ago

NOTE: Check how we change dir before running fzz in the tests, maybe that's the way to go https://github.com/cristianoliveira/funzzy/blob/9844b7574125d11bf0e14df572426e8338c727be/tests/command_init.rs#L9