Repository navigation
fix: resolve component-id from package-name when full metadata lacks componentId - #10558
Conversation
Code Review by Qodo
1.
|
PR Summary by QodoFix componentId resolution by merging abbreviated manifest when full metadata is filtered
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Fallback resolve error leaks
|
|
Code review by qodo was updated up to the latest commit 04ed6ee |
|
Code review by qodo was updated up to the latest commit eb791cd |
Proposed Changes
bit import <package-name>fails with: "the package.json of version X has no componentId field".The pnpm v12 engine filters the full package document. The filter keeps only standard fields. It removes the
componentIdfield. The engine returns the abbreviated document without a filter. Registries such as bit.cloud includecomponentIdin the abbreviated document.This fix adds a fallback to
fetchFullPackageManifest. When the full manifest has nocomponentId, it gets the abbreviated manifest. It then merges the two manifests. The root cause stays in the pnpm engine and must get a fix there.