Handpick conditional dependencies like a boss.
Install on your system:
npm install handpick --global
Run the command:
handpick [options]
-V, --version
-T, --target
-F, --filter
-M, --manager
-P, --path
-h, --help
Name | Type | Default | Mandatory |
---|---|---|---|
target | string | dependencies / devDependencies | optional |
filter | string | optional | |
manager | string | npm | optional |
path | string | . | optional |
Define unofficial dependencies inside package.json
file:
{
"lintDependencies":
{
"eslint": "6.8.0",
"eslint-config-redaxmedia": "2.1.0"
},
"testDependencies":
{
"chai": "4.2.0",
"mocha": "7.1.2"
}
}
Install the lintDependencies
:
handpick --target=lintDependencies
Install the devDependencies
and lintDependencies
via YARN:
handpick --target=devDependencies --target=lintDependencies --manager=yarn
Install the devDependencies
without testDependencies
:
handpick --target=devDependencies --filter=testDependencies
Install the dependencies
and devDependencies
within path:
handpick --path=../shared
Name | Value |
---|---|
NPM | npm |
PNPM | pnpm |
YARN | yarn |