ITADN

Not detected as affected when PNPM catalog is edited

#103Opend-corler 创建于 2026-01-05
D
d-corlercommented
Thanks for the support of the `pnpm` catalog introduced with https://github.com/moonrepo/plugins/pull/88. In a context of dependency bump automation (renovate, ...), versions defined in the `catalog` are edited, as well as the lock file : should I expect to see projects using bumped dependencies as **affected** ? The `package.json` is set as `implicitInputs` of the `node` toolchain in my projects. --- Example: ```diff # ./pnpm-workspace.yaml packages: - packages/* catalog: - remeda: 2.32.1 + remeda: 2.32.2 ``` ```yaml # .moon/tasks/node.yml implicitInputs: - package.json ``` ```yaml # ./packages/ts-json/moon.yml id: ts-json language: typescript platform: node tags: - tsdown layer: library ``` ```json # ./packages/ts-json/package.json { "name": "test/json", "version": "1.0.0", "type": "module", "dependencies": { "remeda": "catalog:" } } ``` ```sheel ❯ moon task ts-json:build About ──────────────────────────────────────────────────────── Target: ts-json:build Project: ts-json Task: build Toolchains: node, typescript Type: build Depends on: - [...] Process ────────────────────────────────────────────────────── Command: pnpm exec tsdown Environment variables: — Working directory: /[...]/packages/ts-json Lookup paths: — Runs dependencies: Concurrently Runs in CI: Yes Configuration ──────────────────────────────────────────────── Inherits from: - .moon/tasks/tag-tsdown.yml Inputs: - .moon/*.{pkl,yml} - .moon/tasks/tag-tsdown.yml - packages/ts-json/package.json - packages/ts-json/src/**/* - packages/ts-json/tsdown.config.* Outputs: - packages/ts-json/lib/**/* ``` ```shell ❯ moon query projects --affected --downstream deep --json { "projects": [], <-- ❓❓ How can I retrieve projects affected by this dependency bump ? "options": { "affected": { "shouldCheck": false }, "json": true, "query": null, "alias": null, "id": null, "language": null, "layer": null, "stack": null, "source": null, "tags": null, "tasks": null } } ```
5 条评论