yarn-only
v1.0.4
Published
When used prevents developers from installing using npm
Downloads
9
Maintainers
Readme
Yarn Only
Simple module to prevent user from running a full install with anything apart from yarn. E.g. the command: npm install
!! Warning !! Due to the way the preinstall
script works individual modules may still be installed with the npm install <module name>
command. Which may result in files being generated like a package-lock.json
file.
Usage
yarn add yarn-only
Add the following to your
package.json
:
"scripts": {
"preinstall": "yarn-only"
}