I’d like to add some console.log
debugging code into my TS script and it is not displayed currently.
I’ve added the following to package.json:
"start": "dotenv -- node --import tsx -e 'require("./path/to/my.ts").myFunction()'",
and run it like npm run start
.
Moreover, the simplest test commands give me no output both:
npx ts-node -e 'console.log("test")'
and
node --import tsx -e 'console.log("test")'
What could be the reason and should I perform some setup first?