Skip to content

feat: implement --root-deps-affect-all CLI flag#5

Merged
split merged 3 commits into
mainfrom
feature/root-deps-affect-all
Apr 1, 2026
Merged

feat: implement --root-deps-affect-all CLI flag#5
split merged 3 commits into
mainfrom
feature/root-deps-affect-all

Conversation

@split

@split split commented Apr 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add --root-deps-affect-all CLI flag that marks workspace packages as affected when root dependencies change in the lockfile
  • Root package is excluded from results - only workspace packages appear
  • Filter by dependency type (dependencies, devDependencies, peerDependencies, optionalDependencies)
  • Root detection by path instead of private field (more robust)
  • Simplify resolve-affected-packages by excluding root from workspace graph at the data loading level
  • Add e2e tests for all 4 package managers (pnpm, npm, yarn, bun)

Changes

  • Core: resolve-affected-packages.ts - root-deps-affect-all logic
  • Core: load-workspace-manifests.ts - exclude root by path
  • Core: types/lockfile.ts - allDependencyTypes (keys) and allDependencyTypesEnabled
  • CLI: parse-cli-args.ts - --root-deps-affect-all flag
  • CLI: run-affected-command.ts - pass option through
  • Tests: 8 new e2e tests + updated unit tests

split added 3 commits April 1, 2026 09:11
- Add --root-deps-affect-all flag to mark workspace packages as affected
  when root dependencies change in the lockfile
- Root package is excluded from results - only workspace packages appear
- Filter by dependency type (dependencies, devDependencies, peerDependencies,
  optionalDependencies)
- Root detection by path instead of private field (more robust)
- Simplify resolve-affected-packages by excluding root from workspace graph
- Remove unused LockfileParser and DependencyFilter from run-affected-command
- Remove unused allDependencyTypes from to-dependency-filter
- Remove unused lockfileSnapshot parameter from buildWorkspaceGraph
- Add lint to feedback loop in AGENTS.md
@split split merged commit 787ed64 into main Apr 1, 2026
3 checks passed
@split split deleted the feature/root-deps-affect-all branch April 1, 2026 06:21
@github-actions

github-actions Bot commented Apr 1, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

github-actions Bot commented Apr 1, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

github-actions Bot commented Apr 1, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 3.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

github-actions Bot commented Apr 1, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

github-actions Bot commented Apr 1, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

github-actions Bot commented Apr 1, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant