npm.io
0.2.2 • Published 9 years ago

use-yarn-instead

Licence
ISC
Version
0.2.2
Deps
2
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

use-yarn-instead

unstable

This package is a playground for technically enforcing the use of yarn instead of npm on a project. You can read @farisj's use case to get a kind of rationale for it.

You should probably not be using this!

Usage

The published package hooks up to the postinstall npm hook and displays a message when a developer runs npm install instead of yarn install. The problem with this is that it does not stop the installation process. Also, the warning will be superseeded by a massive package depenceny graph, which will almost guaranteedly make people miss it.

Example:

$ npm install

# npm output...

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

       Psst, use `yarn` instead

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

# npm graph...

$