I would like to launch a bin command in debug mode. But I can't seem to write --inspect-brk=3000 as an argument as it only wants to accept a filename and npm link checks if file exists.
"bin": {
"mycommand": "index.js --inspect-brk=3000",
}
ENOENT: no such file or directory
Any ideas? I might just make a debug.js that launches the index.js passing the arg and piping the stdin/stdout.