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

Track pnpm workspace for each component #1578

Merged
merged 3 commits into from
Jan 19, 2025
Merged

Conversation

prabhu
Copy link
Collaborator

@prabhu prabhu commented Jan 19, 2025

Given a large pnpm workspace based monorepo, cdxgen will now precisely track the exact workspace(s) that resulted in the given components.

Following properties are available:

  1. internal:workspaceRef - bom-ref for the workspace component. This will be a component of type application and could be found under metadata.component.components.
  2. internal:workspaceSrcFile - package.json file with the workspace definition.
  3. internal:is_workspace - A boolean indicating that the dependent component is also a workspace.

Also improved the logic to identify component version information for packages that are installed using a github url.

lib/helpers/utils.js Fixed Show fixed Hide fixed
@prabhu prabhu added the enhancement New feature or request label Jan 19, 2025
Signed-off-by: Prabhu Subramanian <[email protected]>
lib/helpers/utils.js Dismissed Show dismissed Hide dismissed
@prabhu prabhu merged commit a11433f into master Jan 19, 2025
23 of 25 checks passed
@prabhu prabhu deleted the feature/pnpm-workspace-props2 branch January 19, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pnpm sponsored
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant