only-pkg
v0.0.1
Published
force constraint package manager
Downloads
3
Readme
only-pkg
force constraint package manager
Usage
Add a preinstall
script to your project's package.json
.
If you want to force npm, add:
{
"scripts": {
"preinstall": "npx only-pkg npm"
}
}
If you want to force pnpm, add:
{
"scripts": {
"preinstall": "npx only-pkg pnpm"
}
}
If you want to force yarn, add:
{
"scripts": {
"preinstall": "npx only-pkg yarn"
}
}