Repository navigation
[pull] main from pnpm:main - #432
Merged
Merged
Conversation
Pacquet rejected recursive outdated queries and kept list/ll scoped to the active project even though the TypeScript CLI traverses selected workspace projects. Reuse the existing workspace discovery and filtering path to select projects for outdated. Load a shared lockfile once or each selected project's dedicated lockfile as appropriate, preserve importer identity, and group equivalent findings across projects so every output format can expose the affected dependents. Keep the existing nonzero exit status when outdated dependencies are found. Promote list and ll to recursive mode by default when invoked inside a workspace. Limit the shared promotion mechanism to commands whose recursive paths already support both lockfile layouts; the other audited commands remain tracked separately. Related to #13201.
…ependencies when computing current specifiers (#13124) Fix pnpm add --save-exact/--save-prefix and pnpm update writing a package's version with the peerDependencies range's prefix instead of the requested exact version, whenever the same package also appeared in peerDependencies. getAllDependenciesFromManifest spread peerDependencies last when merging a project's current specifiers, so a peerDependencies entry (e.g. "react": "^19.0.0") silently overwrote a same-named devDependencies/dependencies/optionalDependencies entry. The resulting merged specifier was then read as prevSpecifier in parseWantedDependencies, and whichVersionIsPinned saw the "^" prefix and returned "major" instead of "patch", overriding the pinned-version behavior requested by --save-exact. getWantedDependencies already spreads peerDependencies first for this same reason (so real dependency fields take precedence over a peer's compatibility range). This change brings getAllDependenciesFromManifest in line with that existing convention rather than introducing a new pattern. Two of the four new tests reproduce the bug's two reported scenarios directly (pnpm add --save-exact, pnpm update --latest) and fail against the unmodified function; the other two guard existing behavior (a peer-only dependency is still included when autoInstallPeers is true; peerDependencies is still excluded entirely when autoInstallPeers is false), to confirm the reorder doesn't change anything except precedence. Review follow-ups: consolidate the duplicated getAllDependenciesFromManifest definitions into a single module (the dormant standalone copy kept the old peers-last order), and add a pacquet regression test pinning the equivalent prev-specifier precedence in add — pacquet already scanned peers last, so no Rust behavior change was needed. Closes #13108
Teach `outdated`, interactive `update`, and opt-in non-interactive updates to discover GitHub Actions dependencies in workflow files and referenced local action definitions. Model actions as development dependencies so the existing production/development filters, compatible/latest behavior, explicit selectors, interactive selection, recursive workspace handling, and no-save/lockfile-only semantics remain consistent with package and runtime updates. Keep non-interactive updates package-only unless `--include-github-actions` is passed or `update.githubActions` is enabled in `pnpm-workspace.yaml`. Resolve semantic release tags through Git refs, but never persist a tag as the executable reference. Every changed action is pinned to the resolved commit SHA, with the semantic tag retained in an adjacent comment for readability and future version comparison. Non-semver and Docker references are left untouched. Implement the behavior in both the TypeScript CLI and pacquet and cover discovery, version selection, exact-SHA pinning, comment preservation, selector handling, and formatting preservation.
* feat(pacquet): align recursive why and peers * chore: update fast-uri to 3.1.4
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )