Skip to content

Name the fallback reason for package-manager settings #322

Done

Description

@adityankale190895

.yarnrc.yml, .yarnrc, bunfig.toml and .pnpmfile.cjs change how dependencies are installed. A change to one of them runs the full suite, but:

  • the first three report Unknown changed file: …
  • .pnpmfile.cjs reports Code that no file imports changed, because it ends in .cjs and looks like source code

.npmrc already reports Tool configuration changed: package manager settings (#142). These four should report the same.

Be careful: these files are also read by the lockfile narrowing in src/git/git-diff.ts, where they decide whether a lockfile change can be narrowed (search for .pnpmfile there). Don't change that code. Only the reason changes.

Done when:

  • All four report Tool configuration changed: package manager settings.
  • tests/repo/tool-config-reasons.test.ts has a case for each.
  • One extra test changes .yarnrc.yml together with package-lock.json, and checks that the plan is still FULL. This shows the lockfile narrowing still treats .yarnrc.yml as blocking.
  • The docs row lists the new files.

pnpm-workspace.yaml is not part of this issue. It defines the workspace layout (src/repo/workspaces.ts) and gets its own wording later.

New to DiffCI? See CONTRIBUTING.md. #142 and its PRs (#144, #155, #156) are a worked example of this exact change. Add a case to tests/repo/tool-config-reasons.test.ts, run npm test, and sign off commits with git commit -s. Comment here to claim the issue.

Activity

  1. added
    enhancement
    good first issue
    on Nov 18, 2026
  2. added
    area: yarn
    on Dec 1, 2026
  3. adityankale190895 commented on Dec 2, 2026

    @adityankale190895
    MemberAuthor

    @KingEmma7 this one is in your Yarn area, so you get first pick if you'd like it. It's a small change: .yarnrc.yml, .yarnrc, bunfig.toml and .pnpmfile.cjs should report Tool configuration changed: package manager settings like .npmrc does. One test also checks that .yarnrc.yml still blocks the lockfile narrowing in git-diff.ts. #142 and its PRs show the same change.

    No pressure. If you'd rather not take it, it stays open as a good first issue.

  4. KingEmma7 commented on Dec 2, 2026

    @KingEmma7
    Collaborator

    Thanks for offering me first pick. I’ll take #322. I’ll make the four files report the same fallback reason as .npmrc and add a test to confirm that a .yarnrc.yml change alongside package-lock.json still runs the full suite.

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

    area: yarnenhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions