Skip to content

[pull] main from pnpm:main - #453

Merged
pull[bot] merged 7 commits into
dwongdev:mainfrom
pnpm:main
Jul 28, 2026
Merged

pull[bot] merged 7 commits into
dwongdev:mainfrom
pnpm:main

Conversation

@pull

@pull pull Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

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 : )

zkochan added 7 commits July 28, 2026 00:12
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.
@pull pull Bot locked and limited conversation to collaborators Jul 28, 2026
@pull pull Bot added the ⤵️ pull label Jul 28, 2026
@pull
pull Bot merged commit 43e6a4a into dwongdev:main Jul 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant