Code doesn't exit
When i run a JS function via make-runnable, the function does't exit. After successful run, the output shows "--------make-runnable-output--------", and it the execution stops there. The script doesn't exit to the Shell Prompt. I have to do Ctrl+C to make it exit.
It would be nice if the program exits gracefully.
Hmmm. I can't replicate this - it terminates for me. Could you provide an example function / file please?
I've just come across this issue.
I have a file which exports a seed function, to which I've added require('make-runnable') to the end of.
I'm using the function as follows:
"first-deploy": "dotenv -c -- node pbs-seed.js seed"
It has successfully run my seed function, but the code hasn't exited by itself. We are wanting to use this in production ASAP, any ideas on how to fix this?