๐โโ๏ธ An obliging task runner
Run npm-scripts in the correct environment without further installation or config.
$ yarn global add @sndrs/okor
$ npm install -g @sndrs/okThen use it to run your npm-scripts:
$ ok test # etc...ok uses nvexeca behind the scenes. This means:
- it does not need to make changes to
$PATH - it does not affect existing Node versions
- it does not affect
NVM,fnmetc
- uses correct Node version, observing
.nvmrc,enginesand more - uses the correct package manager for the project (
yarn,npmorpnpm)- observes
engines.npmif present (unlike npm)
- observes
- always run tasks with up-to-date dependencies
- uses its own copy of
yarnif it cannot find one - no
nvm/n/fnmetc needed
- All task output is shown โ no magic
- All available scripts in current context are discoverable by running without args (
> ok) - Notifies you if you're using out-of-date version
nvexeca:nvm+execa