#pnpm #workspace #tree #command-line-tool #catalog #yaml #add

bin+lib pnpm-extra

A mall CLI tool that adds some pnpm commands I want

2 releases

0.1.1 Sep 24, 2024
0.1.0 Aug 13, 2024

#1630 in Command line utilities

Download history 117/week @ 2024-08-11 8/week @ 2024-08-18 16/week @ 2024-09-15 147/week @ 2024-09-22 22/week @ 2024-09-29 3/week @ 2024-10-06

188 downloads per month

Custom license

19KB
260 lines

pnpm-extra

Just a few missing utilities in pnpm:

pnpm-extra tree

Modelled on cargo tree -i, this is a better replacement for pnpm why that:

  • shows an inverse dependency tree, which I find much more useful,
  • always shows everything in the workspace,
  • doesn't descend into dependencies that were already shown,
  • also just gives a more compact output

pnpm-extra catalog add

Like pnpm add but for adding catalog entries to pnpm-workspace.yaml.

Pretty early: doesn't preserve any comments or formatting, so it runs prettier on the file afterwards.


lib.rs:

pnpm-extra

The library for the pnpm-extra binary.

At the moment this simply exports the print_tree function that implments the pnpm-extra tree command, and the read_workspace function that reads the pnpm-workspace.yaml file used by pnpm-extra catalog add command.

There is no expectation of stability or backwards compatibility for this library at this time, use at your own risk!

Dependencies

~5–12MB
~148K SLoC