Repository navigation
[pull] main from pnpm:main - #453
Merged
Merged
Conversation
The Rust CLI accepted shamefullyHoist without translating it into the public hoist pattern used by installation. This left packages absent from the root node_modules even though shameful hoisting was enabled. Derive publicHoistPattern after all configuration sources are merged so an explicit shamefullyHoist value has the same precedence and behavior as in the TypeScript CLI. Cover both enabled and disabled values in config tests and make the CLI regression tests rely on shamefullyHoist alone. Fixes #13444.
Recognize `--parallel` as a recursive-run option in the Rust CLI instead of forwarding it as the script name. Apply the shorthand's recursive and no-sort settings during CLI normalization, thread the parallel mode into recursive script dispatch, and start all selected projects concurrently. Project results are collected in selection order so summaries and failure reporting remain deterministic. Add parser-boundary coverage and a synchronization-based concurrency regression test. The TypeScript CLI already implements this behavior. Closes #13443
`scriptShell` reached only `pnpm run` / `pnpm exec` (and `pnpm version`). Every lifecycle script the install spawns passed `script_shell: None` and so ran under the platform default, `sh` or `cmd`, however the workspace had configured its shell. The TypeScript CLI threads `scriptShell` into the same runs through `scriptsOpts`, so a workspace whose scripts assume its configured shell worked there and not here. Thread `config.script_shell` to the three contexts that spawn scripts during an install: dependency build scripts, a project's own lifecycle scripts, and `pnpm:devPreinstall`. Deliberately unchanged, because the TypeScript CLI does not pass `scriptShell` there either and matching it is the point: - git-hosted dependency preparation (`install_package_by_snapshot`, `patch`), whose counterpart `exec/prepare-package` builds its `RunLifecycleHookOptions` without the field. - `pack` and `publish` lifecycle scripts, likewise. The tests spawn through a shell shim that records each script it is handed, so a context that ignores the setting fails rather than silently falling back to the default shell. Unix-only: the probe is a shell script, and `select_shell` rejects `.cmd` / `.bat` shims on Windows.
Check-only installs are intended to resolve and compare lockfiles without writing to disk. The modules compatibility validation ran before the existing check-only guards, however, and could purge node_modules when settings such as the store directory differed. Skip compatibility validation for check-only installs and verify that dedupe --check preserves the modules manifest while still reporting lockfile dedupe opportunities. Fixes #13450.
Resolve missing manifest licenses from conventional license files, using the same recognized names as TypeScript pnpm. Classify dependencies with lockfile-wide dependency types. When output deduplicates versions into one row, preserve classification and details from the latest version. Closes #13438.
Sort dedupe check snapshot changes before rendering them so output does not depend on resolver insertion order. This aligns the TypeScript report with Rust pnpm, which already reports canonical lockfile-key order. Related to #13305.
Pacquet serialized hoisted dependencies through sorted maps and traversed the dependency graph with breadth-first ownership semantics. Both choices could select or order entries differently from the TypeScript CLI. Preserve insertion order through the modules manifest, mirror pnpm's graph-walker ownership and direct-dependency ordering, and use virtual-store directory names as the equal-depth sort key. Fixes #13449.
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 : )