Skip to content

Not detected as affected when PNPM catalog is edited #103

Description

@d-corler

Thanks for the support of the pnpm catalog introduced with #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:

# ./pnpm-workspace.yaml

packages:
  - packages/*

catalog:
-  remeda: 2.32.1
+  remeda: 2.32.2
# .moon/tasks/node.yml

implicitInputs:
  - package.json
# ./packages/ts-json/moon.yml
id: ts-json
language: typescript
platform: node
tags:
  - tsdown
layer: library
# ./packages/ts-json/package.json
{
	"name": "test/json",
	"version": "1.0.0",
	"type": "module",
	"dependencies": {
		"remeda": "catalog:"
	}
}
❯ 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/**/*
❯ 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
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions