fix(nodemon): Resolve the correct watch path for nodemon

This commit is contained in:
Bouncey
2018-09-20 10:20:30 +01:00
committed by Stuart Taylor
parent 3a98e3cfa3
commit 147e61e4f7

View File

@ -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
});