pnpm: add option placeholders and align arguments (#19108)

This commit is contained in:
Managor
2025-10-30 10:18:23 +02:00
committed by GitHub
parent a8ab43f836
commit 57223d0fed
+6 -6
View File
@@ -10,7 +10,7 @@
- Download all the packages listed as dependencies in `package.json`:
`pnpm install`
`pnpm {{[i|install]}}`
- Download a specific version of a package and add it to the list of dependencies in `package.json`:
@@ -18,20 +18,20 @@
- Download a package and add it to the list of dev dependencies in `package.json`:
`pnpm add {{[-D|--save-dev]}} {{module_name}}`
`pnpm add {{module_name}} {{[-D|--save-dev]}}`
- Download a package and install it globally:
`pnpm add {{[-g|--global]}} {{module_name}}`
`pnpm add {{module_name}} {{[-g|--global]}}`
- Uninstall a package and remove it from the list of dependencies in `package.json`:
`pnpm remove {{module_name}}`
`pnpm {{[rm|remove]}} {{module_name}}`
- Print a tree of locally installed modules:
`pnpm list`
`pnpm {{[ls|list]}}`
- List top-level globally installed modules:
`pnpm list {{[-g|--global]}} --depth {{0}}`
`pnpm {{[ls|list]}} {{[-g|--global]}} --depth {{0}}`