Skip to content

pnpm lockfile: report which dependencies changed #49

Closed

Description

@adityankale190895

Context: on a replay of one production app's history, DiffCI fell back to the full suite on 58% of commits, mostly because config, package.json, workflow or lockfile changes forced it to. Narrowing those safely is the main open problem.

For package-lock.json, npmLockAffectedDependencies (src/repo/npm-lockfile.ts) works out which direct dependencies a lockfile change touches, so a bump can be narrowed to the tests that import them. pnpm-lock.yaml has no equivalent and always falls back.

Done when: a pnpmLockAffectedDependencies with the same contract exists, it is wired in next to the npm call in src/git/git-diff.ts (around line 596), and it has fixtures for a single bump, a transitive-only bump, and an unparseable file (which must fall back).


New to DiffCI? See CONTRIBUTING.md: add a synthetic fixture, run npm test, and sign off commits with git commit -s. Comment here to claim the issue.

Activity

  1. added
    enhancement
    help wanted
    on Oct 29, 2026
  2. adityankale190895 commented on Nov 16, 2026

    @adityankale190895
    MemberAuthor

    Done in c0c55ba: pnpm-lock.yaml changes are now attributed to the direct dependencies they reach, so a bump can be narrowed to the tests that import them. Closing.

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

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions