only-allow

    1.0.0 • Public • Published

    only-allow

    Force a specific package manager to be used on a project

    Usage

    Add a preinstall script to your project's package.json.

    If you want to force npm, add:

    {
      "scripts": {
        "preinstall": "npx only-allow npm"
      }
    }

    If you want to force pnpm, add:

    {
      "scripts": {
        "preinstall": "npx only-allow pnpm"
      }
    }

    If you want to force yarn, add:

    {
      "scripts": {
        "preinstall": "npx only-allow yarn"
      }
    }

    License

    MIT

    Keywords

    Install

    npm i only-allow

    DownloadsWeekly Downloads

    32,574

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.52 kB

    Total Files

    4

    Last publish

    Collaborators

    • zkochan