yarn-run

yarn run executables for locally-installed packages without using ./node_modules/.bin

Usage no npm install needed!

<script type="module">
  import yarnRun from 'https://cdn.skypack.dev/yarn-run';
</script>

README

yarn-run

Run locally-installed node module executables with yarn.

run local executables from node_modules

Any executable available to an npm / yarn lifecycle script is available to yarn-run.

run script from package.json

if no executable was found locally or global yarn-run will run the script of your package.json if any

Usage

> yarn add mocha # mocha installed in ./node_modules
> yarn-run mocha test/* # uses locally installed mocha executable

Installation

> yarn global add yarn-run

License

MIT