This would add hooks for various life cycle events:
before_install
after_install
before_uninstall
after_uninstall
before_chdir
after_chdir
Any more that might be appropriate / possible.
This would allow users to add scripts into the Fnm process and would allow for installing default packages (like in https://github.com/Schniz/fnm/issues/139) without you having to deal with the specifics of npm, pnpm, yarn etc...
I imagine that this would require adding an .fnmrc file or hardcode a folder location with hardcoded filenames (kind of like Git's hooks).
Would it be possible to add a hooks mechanism?
This would add hooks for various life cycle events:
before_install
after_install
before_uninstall
after_uninstall
before_chdir
after_chdir
Any more that might be appropriate / possible.
This would allow users to add scripts into the Fnm process and would allow for installing default packages (like in https://github.com/Schniz/fnm/issues/139) without you having to deal with the specifics of npm, pnpm, yarn etc...
I imagine that this would require adding an
.fnmrc
file or hardcode a folder location with hardcoded filenames (kind of like Git's hooks).