Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

antfu/nip

Repository files navigation

Important

This project is DEPRECATED. Try nai by LittleSound for an interactive experience, or just ni, since it now supports catalogs.


nip

npm version npm downloads bundle JSDocs License

A better pnpm install xxx with prompts and catalogs support.

Note

This CLI is pnpm-specific and opinionated, you might want to use @antfu/ni for other scenarios.

pnpm i @antfu/nip
nip vue

Then it will prompts you to select the catalog to install the package to, and update pnpm-workspace.yaml and package.json for you.

Image

Image You can also explicitly set the catalog with --catalog flag.

nip vue --catalog frontend

Why?

  • pnpm is currently lacking of the --catalog option to directly install packages to catalog, resulting in quite a few manual operations to maintain the catalogs. On the other hand, pnpm's current codebase structure is a bit too complex to add this feature as an outside contributor. So this tool is more like a quick workaround.
  • Sometimes the dependency might already presented in the workspace/catalogs. This tool would pick existing version/catalog automatically.
  • My workflow might be a bit opinionated, FYI: Categorize Your Dependencies

Todos

  • Support inferring current workspace packages and fill workspace:* automatically.
  • Prompts to edit entries (if select "no" in "looks good")

Sponsors

License

MIT License © Anthony Fu

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages