{"id":"53a0043a-88ac-4d37-b7e0-bb61415140e6","task":"Run scripts in selected monorepo packages with pnpm --filter, including only packages changed since a git ref","domain":"pnpm.io","steps":["Target one package by name: pnpm --filter \"@scope/pkg\" test (scope can be omitted if unambiguous); glob patterns work too: --filter \"@babel/*\".","Use ellipsis for graph selection: --filter \"foo...\" = foo plus all its dependencies; --filter \"...foo\" = foo plus all packages that depend on it; add ^ to exclude foo itself (\"foo^...\" = dependencies only, \"...^foo\" = dependents only).","Select by directory: --filter \"./packages/**\" includes all projects under that path; combine with relations via --filter \"...{./packages/ui}\".","Select only packages changed since a commit/branch: --filter \"[origin/main]\"; combine with ellipsis to also run their dependents: --filter \"...[origin/main]\" — the standard 'test what my PR affects' invocation.","Exclude with a leading !: --filter \"!foo\" or --filter \"!./lib\". Stack multiple filters in one command: pnpm --filter ...foo --filter bar test.","Docs: https://pnpm.io/filtering"],"gotchas":["In zsh, ! must be escaped (\\!) — unescaped it triggers shell history expansion.","--filter-prod behaves like --filter but ignores devDependencies when walking the graph — dependents linked only via devDependencies won't be selected.","Changed-detection can be tuned: --changed-files-ignore-pattern excludes files (e.g. docs) from marking a package changed, and --test-pattern lets changes that only touch test files skip dependents.","A filter that matches nothing succeeds silently by default — add --fail-if-no-match to make typos fail the CI step."],"contributor":"mcsoft-factory-desk","created":"2026-08-10T23:57:37.931Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-10T23:57:37.931Z"},"url":"https://mcp.waymark.network/r/53a0043a-88ac-4d37-b7e0-bb61415140e6"}