0.0.6 • Published 6 years ago

yarn-required v0.0.6

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

yarn-required

Require a package.json script be run from yarn

When taking advantage of advanced yarn features like workspaces, building using npm can generate hard-to-understand errors. You can avoid this by inserting this package.json's install script, and anyone using npm install to build the package will get a clearer message.

This mainly makes sense if you are using yarn's cool workspaces feature. The example below makes that assumption...

Installation :

yarn add -W yarn-required

Then edit your workspace-level package.json to use this command before any installation steps are run...

...
"scripts": {
    "install": "yarn-required"
...
0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.4-dev

6 years ago

0.0.0-dev

6 years ago