Negotiable Paleobotanist Missions
    Have ideas to improve npm?Join in the discussion! »

    thin-install

    1.3.0 • Public • Published

    thin-install

    For large projects it can be a pain to install the entire project if you only need a subset of dependencies to accomplish a task.

    Install thin-install npm install thin-install

    Then add the subsets object to your package.json

    {
      "name": "foo",
      "version": "1.0.0",
      "description": "",
      "main": "index.js",
      "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1"
      },
      "author": "",
      "license": "ISC",
      "dependencies": {
        "dependency-a": "1.0.0",
        "dependency-b": "2.2.2",
        "dependency-c": "3.3.3"
      },
      "subsets": {
        "thinInstall": [
          "dependecny-a",
          "dependency-b"
        ]
      }
    }

    Run tool ./node_modules/.bin/thin-install --subset=thinInstall,anotherSubset

    Available options

    • --subset - The subset to install. Separate multiple subsets with comma
    • --installCommand - Provide a custom install command. Usefule if using Yarn or another package manager.

    Keywords

    none

    Install

    npm i thin-install

    DownloadsWeekly Downloads

    2

    Version

    1.3.0

    License

    MIT

    Unpacked Size

    12.5 kB

    Total Files

    8

    Last publish

    Collaborators

    • avatar