kmagiera / babel-watch

Reload your babel-node app on JS source file changes. And do it fast.
MIT License
529 stars 70 forks source link

Application doesn't restart automatically #142

Open Dajust opened 1 year ago

Dajust commented 1 year ago

I've tried to add --watch option manually and also the suggestions here but nothing's working.

My script block looks like this

"scripts": {
     ...
    "clean": "rm -rf build && mkdir build",
    "dev": "yarn clean && babel src -w -d build --extensions '.ts'",
    "dev-start": "babel-watch build/index.js -w [build]",
    "dev-nodemon-start": "nodemon --exec babel-node build/index.js"
  },

Everything work as expected when I use nodemon. But restarting does happen when I use babel-watch

I'm on Mac M1.