My question is about the ts-node interpreter.
I am making an application that allows code to execute as soon as I save the file (nodemon type).
The problem is that I cannot execute the command with a simple spawn
since I am forced to open the powershell like this
spawn("powershell",["npx ts-node", fileName],
{
stdio: [process.stdin, process.stdout, process.stderr],
}
);
I would like to know if it would be possible to use the ts-node
command without opening the powershell since it would weigh on performance.
PS:
this doesn't work
spawn("ts-node",[ fileName],
{
stdio: [process.stdin, process.stdout, process.stderr],
}
);