padc
v2.0.5
Published
Wraps pnpm add and injects dependencies into pnpm-workspace.yaml catalogs
Maintainers
Readme
English | 中文
🧩 padc
📦 CLI wrapper for
pnpm addwith automatic catalog injection forpnpm-workspace.yaml.
✨ Features
- 🧠 Automatic catalog injection into
pnpm-workspace.yaml - 📦 References packages in
package.jsonusingcatalog:<name> - 🚀 Full
pnpm addoptions passthrough (e.g.,--save-dev,--filter, etc.) - 🏷️ Custom or interactive catalog selection
- ⚡ Parallel version resolution for faster installs
🚀 Usage
Install
pnpm i -g padcInstall a package into a catalog use -c <catalog>
padc lodash -c utilsThis will add lodash to the utils catalog in pnpm-workspace.yaml and inject catalog:utils into package.json.
Install a package without specifying a catalog
padc lodashYou’ll be prompted to:
- Select default catalog
- Or select an existing catalog
- Or create a new one
🤔 Result
# pnpm-workspace.yaml
catalogs:
utils:
lodash: ^4.17.21{
"dependencies": {
"lodash": "catalog:utils"
}
}