Supporting pnpm through --package-manager pnpm flag #811
Closed
deluksic
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
First, your forked version of
Second, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
My company uses
pnpm
because it's faster and less buggy thannpm
. This unfortunately means we wouldn't be able to usecyclonedx
. However,pnpm
has a very similar API tonpm
so I thought I'd give it a go: https://github.com/deluksic/cyclonedx-node-npmIn this repo (branch
deluksic/pnpm-support
) I added a flag--package-manager pnpm
which modifies just a few lines of code in order to supportpnpm
. It seems to work quite well. I understand this is not a long term solution, where ideally there would becyclonedx-pnpm
tool directly, but just wanted to show that it only requires a few LOC changes to support both.Thank you for supporting open source,
David
Beta Was this translation helpful? Give feedback.
All reactions