Describe the bug
The recursive option in fs.watch is only supported on macOS and Windows. So on Linux the subdirectories aren't watched when i run npm run dev.
|
fs.watch( path.resolve( p, 'src' ), { recursive: true }, ( event, filename ) => { |
To Reproduce
Steps to reproduce the behavior:
- On Linux OS clone the project.
- Run
npm i and npm run dev.
- Make some change in file: packages/block-library/src/paragraph/index.js
- Change isn't watched (nothing happens)
Expected behavior
"watch" to work on Linux too.. 😞 .
Possible solution
I've used node-watch package.
Desktop (please complete the following information):
- OS: Fedora 29
- Version 4.7.1
Describe the bug
The recursive option in
fs.watchis only supported on macOS and Windows. So on Linux the subdirectories aren't watched when i runnpm run dev.gutenberg/bin/packages/watch.js
Line 36 in 84e1e80
To Reproduce
Steps to reproduce the behavior:
npm iandnpm run dev.Expected behavior
"watch" to work on Linux too.. 😞 .
Possible solution
I've used node-watch package.
Desktop (please complete the following information):