fix(nodemon): Resolve the correct watch path for nodemon
This commit is contained in:
@ -1,10 +1,11 @@
|
||||
const path = require('path');
|
||||
const nodemon = require('nodemon');
|
||||
|
||||
nodemon({
|
||||
ext: 'js json',
|
||||
// --silent squashes an ELIFECYCLE error when the server exits
|
||||
exec: 'DEBUG=fcc* npm run --silent babel-dev-server',
|
||||
watch: './server',
|
||||
watch: path.resolve(__dirname, './server'),
|
||||
spawn: true
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user