-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support to pnpm-lock.yaml file #853
Conversation
Thanks for the PR @lapa182! We'll take a look at this ASAP. |
I am trying these changes in our setup. I don't think it will work because
|
@Obi-Dann do you think you could create a specific condition just for PNPM and use https://www.npmjs.com/package/@pnpm/lockfile-file to parse the lock file just for pnpm? 🤔 |
Thanks @Obi-Dann! You're right, this won't change the current behavior since it won't be able to parse the pnpm lock file. It will fall back to looking at @lapa182 that pnpm library looks promising, but we haven't yet dug into it enough to know if it will give us what we need. We have a ticket on our end to take a closer look, but I can't say for sure when that will be prioritized. I'll see if I can get some traction on that. Thanks! |
Having the same issue...please fix this! ❤️ |
related: my parse-package-lock is a generic lockfile parser for npm, yarn, pnpm but it does not return a tree of dependencies eventHandlers.enterPackage(packageData);
// recurse into dependencies of this package
eventHandlers.leavePackage(packageData); i started this 2 years ago because i was not happy with snyk-nodejs-lockfile-parser downsides: not used, not tested, abandoned project edit: https://github.com/antongolub/lockfile is more mature, but has no pnpm support |
This is out of sync with the |
This pull request adds support to the pnpm-lock.yaml files.
I've updated the tests to also support this change, please let me know if there's anything further to apply this change to chromatic-cli!
Relates to issue #785