Wish to run a command on change of multiple entry files and/or any of their imports, in a nodejs project

I wish to create a dev environment in which i can watch all the imports of an entry file and run a certain command if anything in the import tree changes, kind of like nodemon except i want watch multiple entry file and their import. Any Suggestion on how i could do it ?