pnpm
pnpm copied to clipboard
Output commit of git-dependencies in `pnpm ls`
Contribution
- [ ] I'd be willing to implement this feature (contributing guide)
Describe the user story
Git dependencies are locked at specific commit in pnpm-lock.yaml e.g. github:user/repo at install time. pnpm ls output only version information which sometimes is not useful since different commits can have the same version in package.json (e.g. updating unreleased commits).
Btw is there an alternative to writing pnpm ls --depth 100 every time to just make sure it output all sub dependencies? Or a way to make it default? So annoying to write it every time.
Describe the solution you'd like
Output commit in parentheses (output actual thing that locks the specific dependency - for npm its version, for git its commit)
Describe the drawbacks of your solution
No drawbacks
Describe alternatives you've considered
Every time go to pnpm lock and search for dependency. But would so much cleaner to just able to ctrl+click and go to pnpm lock commit of the dependency. Maybe add links for terminals that support it?