Nx adapter: select a project's target when a changed file matches its Nx inputs

Open
#113 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
ci-cd, testing

Research direction

Start by reading the Nx adapter’s target selection logic and its existing fixture tests; the issue does not name file paths, so locate them in the repository. Check how it reads the project graph and nx.json inputs, then add fixtures for a matched named input, a negated input, and an uncovered file. Done means matched targets are selected, excluded files do not select them, and uncovered files still trigger the full-suite fallback.

Written by the indexing model from the issue text.

Description

adapter enhancement help wanted

Part of #111.

A changed file that no import reaches, but that a target's inputs match ({projectRoot}/vite.config.ts, sharedGlobals, externalDependencies), should select that project's target instead of falling back to the full suite as an unknown file. Read namedInputs from nx.json and each target's inputs from the graph. Respect negated patterns (!{projectRoot}/**/*.md).

Fixtures: a changed config file covered by namedInputs; a changed file excluded by a negated input; a changed file no input covers (still falls back).

Dominant language
TypeScript
Stars
0
Forks
4
Avg merge
18h 41m
Merged PRs (30d)
48

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DiffCI/core

All issues in DiffCI/core

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.