Enhancement: resolve pnpm `catalog:` dependencies from `pnpm-workspace.yaml`
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 68/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- node.js, typescript, yaml
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- TypeScript
- スター
- 4
- フォーク
- 3
- 平均マージ
- 1日 22時間
- マージ済み PR(30日)
- 76
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
vibgrate/cli のほかの issue
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
area: documentation status: in progress type: documentation
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
Oddmash/oddmash-ui#222 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
appium/appium-wincore-driver#169 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
india-ultimate/hub#715 ·
メンテナーはふだん 1 日以内に返信
-
documentation Entwickler
難易度 1/5 1時間未満 初心者へのやさしさ 89/100
メンテナーはふだん 1 日以内に返信