make-runnable icon indicating copy to clipboard operation
make-runnable copied to clipboard

Code doesn't exit

Open abhishrek opened this issue 4 years ago • 2 comments

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.

abhishrek avatar Aug 11 '21 03:08 abhishrek

Hmmm. I can't replicate this - it terminates for me. Could you provide an example function / file please?

super-cache-money avatar Oct 12 '22 16:10 super-cache-money

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?

miainchambers avatar Feb 03 '23 15:02 miainchambers