1.0.5 • Published 7 years ago

which-pm-runs-cli v1.0.5

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

which-pm-runs-cli

Easily know which package manager is running your package.json scripts.

Usage

yarn add --dev which-pm-runs-cli
{
    "scripts": {
        "preinstall": "which-pm-runs --is yarn || echo 🛑 Yarn is required to setup this project!"
    }
}
❯ npm install
[...]
npm ERR! code ELIFECYCLE
❯ echo $?
1

❯ yarn install
[...]
❯ echo $?
0
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago