Hey!
I have a little question about the -r option. I don't know if it's a bug or related to something else (ts-node ?).
Here is my launch.js:
console.log(process.listenerCount('uncaughtException'));
When I do ./node_modules/.bin/node-dev -- launch.js it displays 1 which is normal because node-dev adds a listener.
But when I do this /node_modules/.bin/node-dev -r ts-node/register -- launch.js; it displays 2. It means that sometimes my process never ends because node-dev check for this counter.
FYI, I ran this: node -r ts-node/register launch.js and it displays 0.
Do you have any idea on how I could fix this?
Thank you
Hey!
I have a little question about the
-roption. I don't know if it's a bug or related to something else (ts-node?).Here is my
launch.js:When I do
./node_modules/.bin/node-dev -- launch.jsit displays1which is normal becausenode-devadds a listener.But when I do this
/node_modules/.bin/node-dev -r ts-node/register -- launch.js; it displays2. It means that sometimes my process never ends becausenode-devcheck for this counter.FYI, I ran this:
node -r ts-node/register launch.jsand it displays0.Do you have any idea on how I could fix this?
Thank you