I want use ts-node-dev in script.js ,but don't know how .
How to using ts-node-dev like nodemon below
var nodemon = require('nodemon');
nodemon({ script: 'app.js' }).on('start', function () {
console.log('nodemon started');
}).on('crash', function () {
console.log('script crashed for some reason');
});
// force a restart
nodemon.emit('restart');
// force a quit
nodemon.emit('quit');
I want use ts-node-dev in script.js ,but don't know how . How to using ts-node-dev like nodemon below