folke / ultra-runner

🏃⛰ Ultra fast monorepo script runner and build tool
https://www.npmjs.com/package/ultra-runner
Apache License 2.0
1.2k stars 32 forks source link

A script with "exit 0" fails to run #242

Open dave-irvine opened 2 years ago

dave-irvine commented 2 years ago

If my command is specified like this:

"test": "exit 0",

it's possible to run this with npm:

12:53 $ npm test

> example@0.1.0 test
> exit 0

But when I try to run via ultra, I get:

error error Command exit failed with Error: spawn exit ENOENT. Is the command on your path?

This is on Linux if that helps... exit is definitely on my path :)