Run Node JS script with node and babel, not with nodemon

Ask a question+

I have a Node JS script which I want to run with Babel. In my package.json file I have this line
"start": "nodemon --require 'dotenv/config' --require 'babel-register' ./src/index.js"

Actuall I copied this line from another project. WHat I don’t like is nodemon. I want to run it with just Node, one time.

My question is how do I run my script with node nad Babel ?

Tigran 1K
add comment

0 Answer

Your Answer