only-disallow
v1.1.1
Published
Force a specific package manager to not be used on a project
Downloads
4
Readme
only-disallow
Force a specific package manager to not be used on a project
Usage
Add a preinstall
script to your project's package.json
.
If you want to force no npm, add:
{
"scripts": {
"preinstall": "npx only-disallow npm"
}
}
If you want to force no cnpm, add:
{
"scripts": {
"preinstall": "npx only-disallow cnpm"
}
}
If you want to force no pnpm, add:
{
"scripts": {
"preinstall": "npx only-disallow pnpm"
}
}
If you want to force no yarn, add:
{
"scripts": {
"preinstall": "npx only-disallow yarn"
}
}