feat: implement --root-deps-affect-all CLI flag#5
Merged
Conversation
- 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
|
🎉 This PR is included in version 2.1.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 2.1.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 3.1.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 2.1.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 2.1.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 2.1.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--root-deps-affect-allCLI flag that marks workspace packages as affected when root dependencies change in the lockfileprivatefield (more robust)resolve-affected-packagesby excluding root from workspace graph at the data loading levelChanges
resolve-affected-packages.ts- root-deps-affect-all logicload-workspace-manifests.ts- exclude root by pathtypes/lockfile.ts-allDependencyTypes(keys) andallDependencyTypesEnabledparse-cli-args.ts---root-deps-affect-allflagrun-affected-command.ts- pass option through