use-yarn-instead

0.2.2 • Public • Published

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...

$

Readme

Keywords

none

Package Sidebar

Install

npm i use-yarn-instead

Weekly Downloads

82

Version

0.2.2

License

ISC

Last publish

Collaborators

  • alexander_wallin