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',
  spawn: true
});

nodemon.on('restart', function nodemonRestart(files) {
  console.log('App restarted due to: ', files);
});

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: path.resolve(__dirname, './server'),
  spawn: true
});

nodemon.on('restart', function nodemonRestart(files) {
  console.log('App restarted due to: ', files);
});

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