Skip to content

fix(resolving-deps-resolver): resolve nested file: deps against the declaring manifest - #13384

Merged
zkochan merged 2 commits into
mainfrom
fix-13323
Jul 25, 2026
Merged

zkochan merged 2 commits into
mainfrom
fix-13323

Conversation

@zkochan

@zkochan zkochan commented Jul 25, 2026 •

Copy link
Copy Markdown
Member

Summary

A file: specifier is relative to the directory of the manifest that declares it — pnpm's parentPkg.rootDir. Pacquet's tree walk threaded the importer's project_dir through every depth, so a file: dependency of a package that was itself installed from a local directory got resolved against the importer. In the reported layout, file:../child declared by packages/license/parent resolved to packages/child and the install failed with ERR_PNPM_LINKED_PKG_DIR_NOT_FOUND.

The children walk now derives the declaring package's directory from its directory resolution and hands it to each file: child's resolve options. It joins the per-wanted dedup key through project_relative_cache_scope, so two parents declaring the same relative specifier no longer share one resolution.

Fixing resolution exposed a second divergence in the same scenario: the snapshot reference. Pacquet wrote <name>@file:<path> where pnpm writes the bare file:<path> whenever the alias equals the package's own name. The importer side already stripped that self-alias, so the strip is now shared with the snapshot side. Without it, pnpm dedupe --check on vitejs/vite would still report a diff against the committed lockfile.

Verified against pnpm 11.17.0 by running both stacks over vite's packages/vite/src/node/__tests__/plugins/fixtures/license shape: the lockfiles are now byte-identical, as they are for three other layouts (single project, packages/*, packages/**).

pnpm 11 already resolves these correctly and covers the shape with its deep local test in installing/deps-installer/test/install/local.ts, so this is pacquet-only — no TypeScript change is needed.

Closes #13323

Squash Commit Body

A `file:` specifier is relative to the directory of the manifest that
declares it — pnpm's `parentPkg.rootDir`. The tree walk threaded the
importer's `project_dir` through every depth, so a `file:` dependency of
a package installed from a local directory was resolved against the
importer instead. A `file:../child` in `packages/license/parent` landed
on `packages/child` and the install failed with
`ERR_PNPM_LINKED_PKG_DIR_NOT_FOUND`.

The children walk now derives the declaring package's directory from its
directory resolution (relative to the lockfile root, absolute for
`link:`-shaped ones) and hands it to each `file:` child's resolve
options. It joins the per-wanted dedup key through
`project_relative_cache_scope`, so two parents that declare the same
relative specifier no longer share a resolution. The speculative
children warm-up applies the same override, both to keep it from
resolving a path that doesn't exist and so it warms the key the real
resolve reads back.

Once resolution was correct, the snapshot the lockfile writes for such a
dependency still diverged: pacquet wrote `<name>@file:<path>` where pnpm
writes the bare `file:<path>` whenever the alias equals the package's own
name. The importer side already stripped that self-alias; the strip is
now shared with the snapshot side, so a workspace with nested `file:`
deps (vite's license fixtures) round-trips through `pnpm dedupe --check`
against a pnpm-written lockfile.

pnpm 11 already resolves these correctly and covers the shape with its
`deep local` test, so no TypeScript change is needed.

Closes pnpm/pnpm#13323

Checklist

  • The change is implemented in both the TypeScript CLI and the Rust
    pnpm/ port, or the description notes what still needs porting.
  • Added a changeset (pnpm changeset) if this PR changes any published
    package. Keep it short and written for pnpm users — it becomes a release note.
  • Added or updated tests.

Written by an agent (Claude Code, claude-opus-5[1m]).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

…eclaring manifest

A `file:` specifier is relative to the directory of the manifest that
declares it — pnpm's `parentPkg.rootDir`. The tree walk threaded the
importer's `project_dir` through every depth, so a `file:` dependency of
a package installed from a local directory was resolved against the
importer instead. A `file:../child` in `packages/license/parent` landed
on `packages/child` and the install failed with
`ERR_PNPM_LINKED_PKG_DIR_NOT_FOUND`.

The children walk now derives the declaring package's directory from its
directory resolution (relative to the lockfile root, absolute for
`link:`-shaped ones) and hands it to each `file:` child's resolve
options. It joins the per-wanted dedup key through
`project_relative_cache_scope`, so two parents that declare the same
relative specifier no longer share a resolution. The speculative
children warm-up applies the same override, both to keep it from
resolving a path that doesn't exist and so it warms the key the real
resolve reads back.

Once resolution was correct, the snapshot the lockfile writes for such a
dependency still diverged: pacquet wrote `<name>@file:<path>` where pnpm
writes the bare `file:<path>` whenever the alias equals the package's own
name. The importer side already stripped that self-alias; the strip is
now shared with the snapshot side, so a workspace with nested `file:`
deps (vite's license fixtures) round-trips through `pnpm dedupe --check`
against a pnpm-written lockfile.

pnpm 11 already resolves these correctly and covers the shape with its
`deep local` test, so no TypeScript change is needed.

Closes #13323
Copilot AI review requested due to automatic review settings July 25, 2026 23:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@zkochan, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 5 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 77c26536-ef08-47ba-8194-c6d4a7dbf2b7

📥 Commits

Reviewing files that changed from the base of the PR and between 46c80bb and b1d4afc.

📒 Files selected for processing (5)
  • .changeset/nested-file-dep-declaring-manifest.md
  • pnpm/crates/cli/tests/nested_file_dependencies.rs
  • pnpm/crates/package-manager/src/dependencies_graph_to_lockfile.rs
  • pnpm/crates/package-manager/src/dependencies_graph_to_lockfile/tests.rs
  • pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-13323

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Fix nested file: dependency resolution relative to declaring manifest

🐞 Bug fix 🧪 Tests 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Resolve nested file: dependencies relative to the declaring package directory.
• Prevent cross-parent reuse of relative file: resolutions via dedup key scoping.
• Align lockfile snapshot refs for self-aliased file: deps with pnpm output.
Diagram

graph TD
  A["Importer install"] --> B["Resolve dependency tree"] --> C{"Dep is file:?"}
  B --> D["declaring_manifest_dir"]
  C --> E["ResolveOptions.project_dir = parent"]
  C --> F["ResolveOptions.project_dir = importer"]
  E --> G["Resolver (local dir)"] --> H["Dependencies graph"] --> I[("pnpm-lock.yaml")]
  F --> G

  subgraph Legend
    direction LR
    _proc["Process/Module"] ~~~ _dec{"Decision"} ~~~ _out[("Artifact")]
  end
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Carry parentPkg.rootDir explicitly in graph edges
  • ➕ Avoids recomputing/inferring the declaring directory from resolution shape
  • ➕ Makes file: base-dir semantics explicit for future resolvers
  • ➖ Requires broader data model changes across resolver/graph types
  • ➖ Higher risk of compatibility fallout than the localized fix here
2. Normalize `file:` specs to absolute paths at ingestion
  • ➕ Eliminates ambiguity about the base directory during recursion
  • ➕ Simplifies dedup keys for local filesystem deps
  • ➖ Would diverge from pnpm’s relative-path lockfile conventions
  • ➖ Can reduce lockfile portability across machines/roots

Recommendation: Keep the PR’s current approach: infer the declaring manifest directory only for directory-resolved parents and override ResolveOptions.project_dir solely for file: children, while also scoping the dedup key. This is the smallest change that matches pnpm behavior, minimizes lockfile-format churn, and is well-covered by both unit and end-to-end regression tests.

Files changed (5) +306 / -25

Bug fix (2) +101 / -25
dependencies_graph_to_lockfile.rsStrip self-alias prefix for 'file:' refs in importer and snapshot rendering +33/-22

Strip self-alias prefix for 'file:' refs in importer and snapshot rendering

• Refactors self-aliased 'file:' detection into 'self_aliased_file_ver' and uses it in both importer dep version parsing and snapshot dependency reference rendering so lockfiles match pnpm’s 'file:<path>' convention.

pnpm/crates/package-manager/src/dependencies_graph_to_lockfile.rs

resolve_dependency_tree.rsResolve nested 'file:' specs relative to declaring package directory +68/-3

Resolve nested 'file:' specs relative to declaring package directory

• Introduces 'declaring_manifest_dir' and 'opts_relative_to_declaring_manifest' to override 'project_dir' for 'file:' children of directory-resolved parents, threads 'parent_dir' through recursive resolution and warm-up, and ensures per-wanted caching keys incorporate the correct scope.

pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs

Tests (2) +200 / -0
nested_file_dependencies.rsAdd end-to-end regression tests for nested 'file:' dependency resolution +133/-0

Add end-to-end regression tests for nested 'file:' dependency resolution

• Introduces two CLI-level tests covering (1) nested 'file:' deps from a local parent and (2) the workspace layout from pnpm/pnpm#13323, asserting correct lockfile directory resolution and snapshot ref formatting.

pnpm/crates/cli/tests/nested_file_dependencies.rs

tests.rsAdd unit test ensuring nested 'file:' child renders as bare 'file:' ref +67/-0

Add unit test ensuring nested 'file:' child renders as bare 'file:' ref

• Adds helpers to construct directory-resolved graph nodes and a regression test asserting that a child of a 'file:'-resolved parent is emitted as 'file:<dir>' (not '<name>@file:<dir>') in snapshots.

pnpm/crates/package-manager/src/dependencies_graph_to_lockfile/tests.rs

Documentation (1) +5 / -0
nested-file-dep-declaring-manifest.mdDocument fix for nested 'file:' dependency base directory and snapshot refs +5/-0

Document fix for nested 'file:' dependency base directory and snapshot refs

• Adds a changeset describing the corrected resolution base for nested 'file:' deps and the lockfile snapshot reference alignment with pnpm.

.changeset/nested-file-dep-declaring-manifest.md

@greptile-apps

greptile-apps Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Reviews (2): Last reviewed commit: "fix(resolving-deps-resolver): limit the ..." | Re-trigger Greptile

@qodo-code-review

qodo-code-review Bot commented Jul 25, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (1) 📜 Skill insights (0)

Context used
✅ Compliance rules (platform): 24 rules

Grey Divider


Remediation recommended

1. Unneeded file: cache splits 🐞 Bug ➹ Performance
Description
opts_relative_to_declaring_manifest() always overrides ResolveOptions.project_dir for nested
file: dependencies when a parent directory is available, even for absolute-path or ~/ file:
specs where the local resolver ignores project_dir. Because project_relative_cache_scope() keys
all file: resolutions by opts.project_dir, this change can cause identical absolute/~/ file:
subdeps declared by multiple local parents to miss the shared dedup cache and be re-resolved
unnecessarily.
Code

pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs[R628-640]

+fn opts_relative_to_declaring_manifest<'a>(
+    opts: &'a ResolveOptions,
+    wanted: &WantedDependency,
+    parent_dir: Option<&Path>,
+) -> Cow<'a, ResolveOptions> {
+    match parent_dir {
+        Some(parent_dir)
+            if wanted.bare_specifier.as_deref().is_some_and(|spec| spec.starts_with("file:")) =>
+        {
+            Cow::Owned(ResolveOptions { project_dir: parent_dir.to_path_buf(), ..opts.clone() })
+        }
+        _ => Cow::Borrowed(opts),
+    }
Relevance

⭐⭐ Medium

Performance/cache-scope concern is plausible but speculative; repo accepts some perf cleanups yet
rejects others without clear evidence.

PR-#13172
PR-#13196

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The new helper rewrites opts.project_dir for any file: wanted dependency, and the
wanted-resolution cache key scopes file: by opts.project_dir. However, the local resolver’s path
resolution returns absolute specs unchanged and resolves ~/ specs against $HOME, so
project_dir does not affect those resolutions—making the cache partitioning unnecessary for those
cases.

pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs[591-599]
pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs[625-641]
pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs[1627-1672]
pnpm/crates/resolving-local-resolver/src/parse_bare_specifier.rs[136-153]
pnpm/crates/resolving-local-resolver/src/parse_bare_specifier.rs[225-234]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`opts_relative_to_declaring_manifest()` currently rewrites `ResolveOptions.project_dir` for every nested `file:` dependency when `parent_dir` is known. This is required for **relative** `file:` specs, but it unnecessarily changes the dedup/cache scope for `file:` specs that are **independent** of `project_dir` (absolute paths and `~/`), leading to avoidable cache misses and extra local-resolver work.

### Issue Context
- The resolver’s per-wanted dedup key includes `project_relative_cache_scope(&wanted, opts)`, which returns `Some(opts.project_dir.clone())` for all `file:` specs.
- The local-resolver parsing resolves absolute `file:` specs without consulting `project_dir`, and `~/` specs resolve against the user’s home directory.

### Fix Focus Areas
- pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs[625-641]
- pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree.rs[1627-1635]

### Suggested fix
1. In `opts_relative_to_declaring_manifest()`, only override `project_dir` when the `file:` spec’s path is *project-relative*.
  - Do **not** override when the `file:` target is:
    - absolute (starts with `/` or a Windows drive prefix like `C:`), or
    - home-relative (`~/...`).
2. Optionally (if you prefer centralizing semantics), refine `project_relative_cache_scope()` so it only scopes by `project_dir` for `file:` specs that actually depend on `project_dir`.

This keeps the correctness fix for relative `file:` while preserving cache sharing for absolute/home-based `file:` deps.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Historical comments in test docs ✓ Resolved 📘 Rule violation ⚙ Maintainability
Description
New comments describe prior/buggy behavior (e.g., 'Regression tests', 'buggy resolution') rather
than only stating the current contract and rationale. This creates stale documentation risk as
implementations evolve.
Code

pnpm/crates/cli/tests/nested_file_dependencies.rs[R1-8]

+//! End-to-end coverage for `file:` dependencies declared by a package
+//! that was itself resolved from a local directory.
+//!
+//! Such a specifier is relative to the manifest that declares it, not to
+//! the importer that pulled the chain in — pnpm's `parentPkg.rootDir`.
+//! Regression tests for pnpm/pnpm#13323, where the nested specifier was
+//! resolved against the importer and produced a directory that doesn't
+//! exist.
Relevance

⭐⭐ Medium

Repo sometimes accepts removing historical/regression phrasing, but similar comment-rewrite requests
are also rejected.

PR-#13246
PR-#13359

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 772199 forbids historical phrasing in source comments. The added test-file docs
explicitly reference regression and 'buggy resolution', which are descriptions of past behavior
rather than the current contract.

Rule 772199: Comments must describe current behavior, not historical implementations
pnpm/crates/cli/tests/nested_file_dependencies.rs[1-8]
pnpm/crates/cli/tests/nested_file_dependencies.rs[20-23]
pnpm/crates/cli/tests/nested_file_dependencies.rs[73-77]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Comments added in tests describe historical/buggy behavior (regression narrative) instead of only the current behavior/contract.

## Issue Context
Inline comments should describe what the current code guarantees and why the test exists, without documenting prior implementations.

## Fix Focus Areas
- pnpm/crates/cli/tests/nested_file_dependencies.rs[1-8]
- pnpm/crates/cli/tests/nested_file_dependencies.rs[20-23]
- pnpm/crates/cli/tests/nested_file_dependencies.rs[73-77]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Informational

3. pnpm missing in changeset 📘 Rule violation § Compliance
Description
The new changeset declares a bump for pacquet but does not include an entry for the pnpm
package. This violates the requirement that changeset front-matter explicitly includes pnpm with a
valid bump type.
Code

.changeset/nested-file-dep-declaring-manifest.md[R1-3]

+---
+"pacquet": patch
+---
Relevance

⭐ Low

Multiple prior PRs rejected adding required "pnpm" entry when changeset only bumps pacquet.

PR-#13371
PR-#13377
PR-#13359

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 713436 requires changeset files to include an explicit pnpm entry with an
appropriate bump type. The added changeset file only lists pacquet, so it fails that requirement.

Rule 713436: Explicitly declare pnpm package and correct bump type in changesets
.changeset/nested-file-dep-declaring-manifest.md[1-3]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset front-matter is missing a `pnpm` entry.

## Issue Context
Compliance requires that changeset metadata explicitly declares the `pnpm` package with a valid bump type (`patch`/`minor`/`major`).

## Fix Focus Areas
- .changeset/nested-file-dep-declaring-manifest.md[1-3]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@github-actions

github-actions Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                          main                                   pr
-----                          ----                                   --
lockfile/parse_pnpm_lock       1.00     11.2±0.08ms    33.6 MB/sec    1.05     11.7±0.03ms    32.0 MB/sec
packument/parse                1.00     37.7±0.22µs  1760.5 MB/sec    1.05     39.5±0.23µs  1681.4 MB/sec
tarball/download_dependency    1.00      2.3±0.06ms  1878.6 KB/sec    1.05      2.4±0.06ms  1789.6 KB/sec

…le: resolutions

`declaring_manifest_dir` treated every directory resolution as
lockfile-root-relative, which only holds for the `file:`-shaped ones.
A workspace `link:` records its directory relative to the consuming
importer and the local resolver's `link:` records it absolute, so the
helper could have handed back a path assembled from the wrong base. The
walk never asks for a linked node's directory — a linked project
resolves its own dependencies as a separate importer — but the helper
now returns `None` for those instead of relying on the caller.
Copilot AI review requested due to automatic review settings July 25, 2026 23:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@zkochan

zkochan commented Jul 25, 2026

Copy link
Copy Markdown
Member Author

Thanks — replies to the three findings:

1. Historical comments in test docs — fixed in b1d4afc. The module and test docs now state the contract and why the fixture is shaped that way, with a bare Covers pnpm/pnpm#13323 reference instead of a description of the old resolution.

2. Unneeded file: cache splits — not taking this one. project_relative_cache_scope already keys every file: specifier by opts.project_dir, absolute and ~/ ones included, so absolute specs were never shared across importers to begin with; this PR only changes which directory a transitive file: edge is keyed by. The split it can add is between two local-directory parents in the same importer that declare the same absolute file: dep — worth one extra package.json read. Buying that back means re-deriving is_absolute_specifier / strip_tilde_prefix outside resolving-local-resolver, where they are pub(crate), and keeping that duplicate in step with the resolver's platform-specific path shapes (Windows drive letters, UNC). Not a trade worth making for this.

3. pnpm missing in the changeset — not applicable. This is a Rust-only change, and AGENTS.md is explicit: "Do not add "pnpm" to a Rust-only changeset: in changesets, pnpm always means the TypeScript CLI package." The changeset correctly targets pacquet alone.


Written by an agent (Claude Code, claude-opus-5[1m]).

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 25, 2026
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit b1d4afc

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@zkochan
zkochan merged commit 3c4fa85 into main Jul 25, 2026
33 of 35 checks passed
@zkochan
zkochan deleted the fix-13323 branch July 25, 2026 23:30
kairosci added a commit to kairosci/pnpm that referenced this pull request Jul 27, 2026
…eclaring manifest (pnpm#13384)

A `file:` specifier is relative to the directory of the manifest that
declares it — pnpm's `parentPkg.rootDir`. The tree walk threaded the
importer's `project_dir` through every depth, so a `file:` dependency of
a package installed from a local directory was resolved against the
importer instead. A `file:../child` in `packages/license/parent` landed
on `packages/child` and the install failed with
`ERR_PNPM_LINKED_PKG_DIR_NOT_FOUND`.

The children walk now derives the declaring package's directory from its
directory resolution (relative to the lockfile root, absolute for
`link:`-shaped ones) and hands it to each `file:` child's resolve
options. It joins the per-wanted dedup key through
`project_relative_cache_scope`, so two parents that declare the same
relative specifier no longer share a resolution. The speculative
children warm-up applies the same override, both to keep it from
resolving a path that doesn't exist and so it warms the key the real
resolve reads back.

Once resolution was correct, the snapshot the lockfile writes for such a
dependency still diverged: pacquet wrote `<name>@file:<path>` where pnpm
writes the bare `file:<path>` whenever the alias equals the package's own
name. The importer side already stripped that self-alias; the strip is
now shared with the snapshot side, so a workspace with nested `file:`
deps (vite's license fixtures) round-trips through `pnpm dedupe --check`
against a pnpm-written lockfile.

pnpm 11 already resolves these correctly and covers the shape with its
`deep local` test, so no TypeScript change is needed.

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

Labels

reviewed: coderabbit CodeRabbit submitted an approving review state: automerge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pnpm 12 resolves nested file: dependencies relative to the workspace root

2 participants