Skip to content

kazupon/pnpmc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Mar 7, 2025
b6e3cc9 Β· Mar 7, 2025

History

90 Commits
Jan 30, 2025
Mar 6, 2025
Jan 30, 2025
Feb 1, 2025
Feb 23, 2025
Jan 30, 2025
Mar 7, 2025
Feb 22, 2025
Jan 30, 2025
Jan 30, 2025
Jan 30, 2025
Feb 1, 2025
Jan 30, 2025
Mar 7, 2025
Feb 1, 2025
Jan 30, 2025
Feb 7, 2025
Feb 1, 2025
Feb 7, 2025
Mar 7, 2025
Mar 7, 2025
Feb 1, 2025
Feb 23, 2025

Repository files navigation

pnpmc

Version CI

PNPMC Demo

PNPM Catalogs Tooling

🌟 Features

  • Show catalogs
  • Detect catalogable dependencies in workspace
  • Register the dependency to the catalog

πŸ’Ώ Installation

pnpm add -D pnpmc

Important

Notice that this tool is for pnpm workspace feature only.

πŸš€ Usage

Display of defined catalogs and Detect catalogable dependencies

You can show the defined catalogs and catalogable dependencies on your pnpm workspace projects (pnpm-workspace.yaml):

pnpx pnpmc # or `pnpx pnpm show`

# PNPM Catalogs Tooling (pnpmc v0.4.0)
#
# πŸ“™ Defined catalogs in pnpm-workspace.yaml:
#   (none)
#
# πŸ“¦ Catalogable Dependencies (1):
#   typescript:
#     /packages/package1 (package1) : ^5.7.3
#     /packages/package2 (package2) : ^5.6.0
#

Register the dependency to the catalog

You can register the dependency to the catalog on your pnpm workspace projects (pnpm-workspace.yaml):

pnpx pnpmc register --dependency typescript --alias ^5.7.0 --catalog tools

# PNPM Catalogs Tooling (pnpmc v0.1.2)
#
# πŸ“™ Registered 'typescript' as '5.7.0' in Catalog 'tools'
#
# πŸ“¦ Overridden 'typescript' alias on /packages/package1 (package1) : ^5.7.3 -> catalog:tools
# πŸ“¦ Overridden 'typescript' alias on /packages/package2 (package2) : ^5.6.0 -> catalog:tools

πŸ™Œ Contributing guidelines

If you are interested in contributing to pnpmc, I highly recommend checking out the contributing guidelines here. You'll find all the relevant information such as how to make a PR, how to setup development) etc., there.

©️ License

MIT