Skip to content
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

Ensure All Required Dependencies are Included in PNPM v9 #1184

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

pcbowers
Copy link
Contributor

Fix #1183 By explicitly removing the optional scope

By traversing all required dependencies, we can explicitly remove any optional scoping that was added earlier in the parsePnpmLock method. Also fixes some tests and adds some new tests to ensure parsePnpmLock works appropriately.

By traversing all required dependencies, we can explicitly remove any optional scoping that was added earlier in the parsePnpmLock method. Also fixes some tests and adds some new tests to ensure parsePnpmLock works appropriately.

Signed-off-by: Chris Bowers <pcbowers@gmail.com>
@pcbowers
Copy link
Contributor Author

@prabhu Feel free to make edits to this, but this should fix the issue where shared dependencies between required and optional dependencies were marked as optional instead of required.

Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
@prabhu
Copy link
Contributor

prabhu commented Jun 20, 2024

Thanks @pcbowers for allowing edits. I made some simple changes, but it looked good otherwise.

@prabhu prabhu merged commit c1bde96 into CycloneDX:master Jun 20, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Required Dependencies Are Marked Optional with PNPM v9
2 participants