nodemon
by default watches files with extensions js,mjs,json
.
Change this to *
and nodemon
will listen to all the files in a directory.
This repository is to demonstrate a behavior of nodemon
in which it does not listen to files in relative path.
- Clone this repository.
cd
to cloned repository.- Execute
cd nodemon-dir
. - Execute
npm run relative-dir-test
. - Open another terminal.
cd
to cloned repository.- Execute
touch tmp-dir/foo
. - Check
nodemon
is not triggered.