Enhancement: resolve pnpm `catalog:` dependencies from `pnpm-workspace.yaml`
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- node.js, typescript, yaml
Hướng nghiên cứu
Start with src/core-open/scanners/npm-cache.ts and src/core-open/scanners/node-scanner.ts, then trace how the scanner detects the root pnpm-workspace.yaml and looks up lockfile versions. Check the existing scanner tests and add cases for default, named, and missing catalog entries. Done means catalog ranges are used for drift and lockfile lookup, the written spec remains currentSpec, and missing entries still produce rows.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
pnpm catalogs let a monorepo keep shared versions in pnpm-workspace.yaml:
catalog:
react: ^18.3.1
catalogs:
legacy:
react: ^17.0.2
and refer to them from each package.json as "react": "catalog:" or "react": "catalog:legacy".
isSemverSpec in src/core-open/scanners/npm-cache.ts (around line 281) rejects catalog: because it is not a semver range, and scanOnePackageJson in src/core-open/scanners/node-scanner.ts (around line 349) then skips the dependency. In a monorepo that has moved to catalogs, most dependencies vanish from vg scan.
What to do
- Read
catalogandcatalogsfrom the rootpnpm-workspace.yamlonce per scan (the scanner already checks that file exists for package-manager detection). - When a spec is
catalog:orcatalog:default, use the default catalog entry; forcatalog:<name>, use that named catalog. - Use the resolved range for drift and lockfile lookup, and keep
currentSpecas written. - If the entry is missing, keep the row visible with an unknown version rather than dropping it.
Acceptance
-
"react": "catalog:"resolves through the default catalog -
"react": "catalog:legacy"resolves through the named catalog - A missing catalog entry still produces a row
- Tests cover both catalog forms and a missing entry
- Ngôn ngữ chính
- TypeScript
- Star
- 4
- Fork
- 3
- Merge trung bình
- 1 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 76
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của vibgrate/cli
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
area: documentation status: in progress type: documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
Oddmash/oddmash-ui#222 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
appium/appium-wincore-driver#169 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
india-ultimate/hub#715 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation Entwickler
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 89/100
Maintainer thường phản hồi trong vòng 1 ngày