refactor: rename packages and consolidate runtime resolvers#10999
Merged
Conversation
- workspace.sort-packages -> workspace.projects-sorter - workspace.pkgs-graph -> workspace.projects-graph Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…n to reader - Rename packages/ directory to core/ for clarity - Rename pkg-manifest/read-package-json to pkg-manifest/reader (@pnpm/pkg-manifest.reader) - Update all tsconfig, package.json, and lockfile references Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove unused @pnpm/engine.runtime.node.fetcher package - Rename engine/runtime/node.resolver to node-resolver (dash convention) - Move resolving/bun-resolver to engine/runtime/bun-resolver - Move resolving/deno-resolver to engine/runtime/deno-resolver - Update all package names, tsconfig paths, and lockfile references Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors the monorepo package layout and naming by moving common packages from packages/ to core/, renaming several workspace/runtime packages, and consolidating runtime resolvers under engine/runtime/ while removing the legacy Node runtime fetcher package.
Changes:
- Renames workspace utilities (
sort-packages→projects-sorter,pkgs-graph→projects-graph) and updates imports/dependencies accordingly. - Moves shared packages from
packages/*tocore/*and updates TS project references across the repo. - Consolidates runtime resolvers under
engine/runtime/*and removes@pnpm/engine.runtime.node.fetcher.
Reviewed changes
Copilot reviewed 209 out of 350 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| resolving/default-resolver/src/index.ts | Switch runtime resolver imports to consolidated engine.runtime.* packages. |
| resolving/default-resolver/package.json | Update dependencies to new runtime resolver package names. |
| resolving/bun-resolver/tsconfig.json | Remove legacy resolver package config after move to engine/runtime/. |
| resolving/bun-resolver/README.md | Remove legacy resolver package README after move to engine/runtime/. |
| renovate.json | Update ignored dep name to @pnpm/pkg-manifest.reader. |
| releasing/exportable-manifest/tsconfig.json | Update TS refs from packages/* to core/*. |
| releasing/commands/tsconfig.json | Update TS refs (core migration + workspace sorter rename). |
| releasing/commands/src/publish/recursivePublish.ts | Update import to @pnpm/workspace.projects-sorter. |
| releasing/commands/src/publish/pack.ts | Update import to @pnpm/workspace.projects-sorter. |
| releasing/commands/package.json | Update dependency to @pnpm/workspace.projects-sorter. |
| pnpm/tsconfig.json | Update TS refs for core/*, pkg-manifest/reader, and workspace/projects-graph. |
| pnpm/test/update.ts | Update import to @pnpm/pkg-manifest.reader. |
| pnpm/test/uninstall.ts | Update import to @pnpm/pkg-manifest.reader. |
| pnpm/test/monorepo/index.ts | Update import to @pnpm/pkg-manifest.reader. |
| pnpm/test/install/misc.ts | Update import to @pnpm/pkg-manifest.reader. |
| pnpm/package.json | Update deps to @pnpm/pkg-manifest.reader and @pnpm/workspace.projects-graph. |
| pnpm-workspace.yaml | Switch workspace glob from packages/* to core/*. |
| pkg-manifest/utils/tsconfig.json | Update TS refs for core/* migration. |
| pkg-manifest/reader/tsconfig.json | Update TS refs to core/error and core/types. |
| pkg-manifest/reader/test/index.ts | Update test imports and expected package name to @pnpm/pkg-manifest.reader. |
| pkg-manifest/reader/package.json | Rename package and update repository/homepage paths. |
| patching/config/tsconfig.json | Update TS refs for core/error migration. |
| patching/commands/tsconfig.json | Update TS refs for core migration and pkg-manifest/reader. |
| patching/commands/src/patchCommit.ts | Update import to @pnpm/pkg-manifest.reader. |
| patching/commands/package.json | Update dependency to @pnpm/pkg-manifest.reader. |
| patching/apply-patch/tsconfig.json | Update TS refs to core/error and core/logger. |
| object/property-path/tsconfig.json | Update TS ref to core/error. |
| network/fetch/tsconfig.json | Update TS refs for core/* migration. |
| network/auth-header/tsconfig.json | Update TS ref to core/error. |
| modules-mounter/daemon/tsconfig.json | Update TS refs for core/* migration. |
| lockfile/walker/tsconfig.json | Update TS refs to core/types. |
| lockfile/verification/tsconfig.json | Update TS refs for core/* migration and pkg-manifest/reader. |
| lockfile/verification/src/linkedPackagesAreUpToDate.ts | Update import to @pnpm/pkg-manifest.reader. |
| lockfile/verification/package.json | Update dependency to @pnpm/pkg-manifest.reader. |
| lockfile/utils/tsconfig.json | Update TS refs for core migration. |
| lockfile/types/tsconfig.json | Update TS ref to core/types. |
| lockfile/to-pnp/tsconfig.json | Update TS refs for core/* migration. |
| lockfile/pruner/tsconfig.json | Update TS refs for core/* migration. |
| lockfile/preferred-versions/tsconfig.json | Update TS ref to core/types. |
| lockfile/merger/tsconfig.json | Update TS ref to core/types. |
| lockfile/make-dedicated-lockfile/tsconfig.json | Update TS refs for core/* migration. |
| lockfile/fs/tsconfig.json | Update TS refs for core/* migration. |
| lockfile/filtering/tsconfig.json | Update TS refs for core/* migration. |
| lockfile/detect-dep-types/tsconfig.json | Update TS refs to core/types. |
| installing/resolve-dependencies/tsconfig.json | Update TS refs for core migration and pkg-manifest/reader. |
| installing/resolve-dependencies/src/index.ts | Update import to @pnpm/pkg-manifest.reader. |
| installing/resolve-dependencies/package.json | Update dependency to @pnpm/pkg-manifest.reader. |
| installing/render-peer-issues/tsconfig.json | Update TS refs to core/error and core/types. |
| installing/read-projects-context/tsconfig.json | Update TS refs for core/* migration. |
| installing/package-requester/tsconfig.json | Update TS refs for core/* migration. |
| installing/modules-yaml/tsconfig.json | Update TS ref to core/types. |
| installing/linking/real-hoist/tsconfig.json | Update TS refs to core/error and core/types. |
| installing/linking/modules-cleaner/tsconfig.json | Update TS refs for core/* migration. |
| installing/linking/hoist/tsconfig.json | Update TS refs for core/* migration. |
| installing/linking/direct-dep-linker/tsconfig.json | Update TS refs for core/* migration. |
| installing/deps-restorer/tsconfig.json | Update TS refs for core migration and pkg-manifest/reader. |
| installing/deps-restorer/test/utils/testDefaults.ts | Update import to @pnpm/pkg-manifest.reader. |
| installing/deps-restorer/src/lockfileToHoistedDepGraph.ts | Update import to @pnpm/pkg-manifest.reader. |
| installing/deps-restorer/src/index.ts | Update import to @pnpm/pkg-manifest.reader. |
| installing/deps-restorer/package.json | Update dependency to @pnpm/pkg-manifest.reader. |
| installing/deps-installer/tsconfig.json | Update TS refs for core migration and pkg-manifest/reader. |
| installing/deps-installer/test/lockfile.ts | Update import to @pnpm/pkg-manifest.reader. |
| installing/deps-installer/package.json | Update dependency to @pnpm/pkg-manifest.reader. |
| installing/dedupe/check/tsconfig.json | Update TS refs to core/error and core/types. |
| installing/context/tsconfig.json | Update TS refs for core/* migration. |
| installing/commands/tsconfig.json | Update TS refs for core migration and workspace renames (projects-*). |
| installing/commands/src/recursive.ts | Update import to @pnpm/workspace.projects-sorter. |
| installing/commands/src/installDeps.ts | Update imports to @pnpm/workspace.projects-graph and @pnpm/workspace.projects-sorter. |
| installing/commands/src/import/index.ts | Update import to @pnpm/workspace.projects-sorter. |
| installing/commands/package.json | Update dependencies to pkg-manifest.reader, workspace.projects-graph, workspace.projects-sorter. |
| installing/client/tsconfig.json | Remove TS ref to removed engine/runtime/node.fetcher, migrate to core/types. |
| installing/client/package.json | Remove dependency on removed @pnpm/engine.runtime.node.fetcher. |
| hooks/types/tsconfig.json | Update TS refs for core/types migration. |
| hooks/read-package-hook/tsconfig.json | Update TS refs to core/error and core/types. |
| hooks/pnpmfile/tsconfig.json | Update TS refs for core/* migration. |
| global/packages/tsconfig.json | Update TS refs for core/types migration and pkg-manifest/reader. |
| global/packages/src/scanGlobalPackages.ts | Update imports to @pnpm/pkg-manifest.reader. |
| global/packages/package.json | Update dependency to @pnpm/pkg-manifest.reader. |
| global/commands/tsconfig.json | Update TS refs for core/* migration and pkg-manifest/reader. |
| global/commands/src/readInstalledPackages.ts | Update imports to @pnpm/pkg-manifest.reader. |
| global/commands/src/globalAdd.ts | Update import to @pnpm/pkg-manifest.reader. |
| global/commands/src/checkGlobalBinConflicts.ts | Update import to @pnpm/pkg-manifest.reader. |
| global/commands/package.json | Update dependency to @pnpm/pkg-manifest.reader. |
| fs/symlink-dependency/tsconfig.json | Update TS refs for core/* migration. |
| fs/indexed-pkg-importer/tsconfig.json | Update TS refs for core/* migration. |
| fs/hard-link-dir/tsconfig.json | Update TS ref to core/logger. |
| fs/find-packages/tsconfig.json | Update TS ref to core/types. |
| fetching/tarball-fetcher/tsconfig.json | Update TS refs for core/* migration. |
| fetching/pick-fetcher/tsconfig.json | Update TS refs to core/error. |
| fetching/git-fetcher/tsconfig.json | Update TS refs for core/* migration. |
| fetching/fetcher-base/tsconfig.json | Update TS ref to core/types. |
| fetching/directory-fetcher/tsconfig.json | Update TS refs for core/* migration. |
| fetching/binary-fetcher/tsconfig.json | Update TS ref to core/error. |
| exec/prepare-package/tsconfig.json | Update TS refs for core migration and pkg-manifest/reader. |
| exec/prepare-package/src/index.ts | Update import to @pnpm/pkg-manifest.reader. |
| exec/prepare-package/package.json | Update dependency to @pnpm/pkg-manifest.reader. |
| exec/lifecycle/tsconfig.json | Update TS refs for core migration and pkg-manifest/reader. |
| exec/lifecycle/src/index.ts | Update import to @pnpm/pkg-manifest.reader. |
| exec/lifecycle/package.json | Update dependency to @pnpm/pkg-manifest.reader. |
| exec/commands/tsconfig.json | Update TS refs for core migration, pkg-manifest/reader, and sorter rename. |
| exec/commands/src/runRecursive.ts | Update import to @pnpm/workspace.projects-sorter. |
| exec/commands/src/exec.ts | Update import to @pnpm/workspace.projects-sorter. |
| exec/commands/src/dlx.ts | Update import to @pnpm/pkg-manifest.reader. |
| exec/commands/package.json | Update dependencies to pkg-manifest.reader and workspace.projects-sorter. |
| engine/runtime/node.resolver/test/tsconfig.json | Remove legacy test TS config after package rename/move. |
| engine/runtime/node.resolver/README.md | Remove legacy README after package rename. |
| engine/runtime/node.fetcher/test/node.test.ts | Remove legacy node fetcher tests along with package removal. |
| engine/runtime/node.fetcher/src/index.ts | Remove legacy node fetcher implementation. |
| engine/runtime/node.fetcher/package.json | Remove legacy node fetcher package manifest. |
| engine/runtime/node.fetcher/README.md | Remove legacy node fetcher README. |
| engine/runtime/node.fetcher/CHANGELOG.md | Remove legacy node fetcher changelog. |
| engine/runtime/node-resolver/tsconfig.lint.json | Fix lint tsconfig typings path after directory move. |
| engine/runtime/node-resolver/tsconfig.json | Update TS refs for core/* migration. |
| engine/runtime/node-resolver/test/resolveNodeVersions.test.ts | Update import to @pnpm/engine.runtime.node-resolver. |
| engine/runtime/node-resolver/test/resolveNodeVersion.test.ts | Update import to @pnpm/engine.runtime.node-resolver. |
| engine/runtime/node-resolver/package.json | Rename package to dash convention and update URLs/deps. |
| engine/runtime/node-resolver/README.md | Add README for renamed node resolver package. |
| engine/runtime/deno-resolver/tsconfig.json | Update TS refs for consolidated runtime resolver + core migration. |
| engine/runtime/deno-resolver/package.json | Rename to @pnpm/engine.runtime.deno-resolver and drop node fetcher dep. |
| engine/runtime/deno-resolver/README.md | Add README for consolidated deno runtime resolver package. |
| engine/runtime/commands/tsconfig.json | Update TS refs for core migration and node resolver rename path. |
| engine/runtime/commands/src/env/envList.ts | Update import to @pnpm/engine.runtime.node-resolver. |
| engine/runtime/commands/package.json | Update dependency to @pnpm/engine.runtime.node-resolver. |
| engine/runtime/bun-resolver/tsconfig.json | Add TS config for consolidated bun runtime resolver package. |
| engine/runtime/bun-resolver/package.json | Rename to @pnpm/engine.runtime.bun-resolver and drop node fetcher dep. |
| engine/runtime/bun-resolver/README.md | Add README for consolidated bun runtime resolver package. |
| engine/pm/commands/tsconfig.json | Update TS refs for core migration. |
| deps/status/tsconfig.json | Update TS refs for core/* migration. |
| deps/path/tsconfig.json | Update TS refs to core/types. |
| deps/inspection/tree-builder/tsconfig.json | Update TS refs for core migration and pkg-manifest/reader. |
| deps/inspection/tree-builder/src/getPkgInfo.ts | Update import to @pnpm/pkg-manifest.reader. |
| deps/inspection/tree-builder/src/buildDependenciesTree.ts | Update import to @pnpm/pkg-manifest.reader. |
| deps/inspection/tree-builder/package.json | Update dependency to @pnpm/pkg-manifest.reader. |
| deps/inspection/outdated/tsconfig.json | Update TS refs for core/* migration. |
| deps/inspection/list/tsconfig.json | Update TS refs to core/types and pkg-manifest/reader. |
| deps/inspection/list/src/readPkg.ts | Update import to @pnpm/pkg-manifest.reader. |
| deps/inspection/list/package.json | Update dependency to @pnpm/pkg-manifest.reader. |
| deps/inspection/commands/tsconfig.json | Update TS refs for core migration. |
| deps/graph-hasher/tsconfig.json | Update TS refs for core migration. |
| deps/graph-builder/tsconfig.json | Update TS refs for core/* migration. |
| deps/compliance/sbom/tsconfig.json | Update TS refs for core migration and pkg-manifest/reader. |
| deps/compliance/sbom/src/getPkgMetadata.ts | Update import to @pnpm/pkg-manifest.reader. |
| deps/compliance/sbom/package.json | Update dependency to @pnpm/pkg-manifest.reader. |
| deps/compliance/license-scanner/tsconfig.json | Update TS refs for core migration and pkg-manifest/reader. |
| deps/compliance/license-scanner/src/getPkgInfo.ts | Update import to @pnpm/pkg-manifest.reader. |
| deps/compliance/license-scanner/package.json | Update dependency to @pnpm/pkg-manifest.reader. |
| deps/compliance/commands/tsconfig.json | Update TS refs for core migration and pkg-manifest/reader. |
| deps/compliance/commands/package.json | Update devDependency to @pnpm/pkg-manifest.reader. |
| deps/compliance/audit/tsconfig.json | Update TS refs for core/* migration. |
| crypto/shasums-file/tsconfig.json | Update TS refs to core/error. |
| crypto/integrity/tsconfig.json | Update TS ref to core/error. |
| core/types/package.json | Update repository/homepage paths after directory move. |
| core/logger/package.json | Update repository/homepage paths after directory move. |
| core/error/package.json | Update repository/homepage paths after directory move. |
| core/core-loggers/package.json | Update repository/homepage paths after directory move. |
| core/constants/package.json | Update repository/homepage paths after directory move. |
| config/writer/tsconfig.json | Update TS ref to core/types. |
| config/version-policy/tsconfig.json | Update TS refs to core/error and core/types. |
| config/reader/tsconfig.json | Update TS refs for core/* migration. |
| config/reader/test/fixtures/pkg-using-workspaces/package.json | Update fixture workspaces glob to core/*. |
| config/pick-registry-for-package/tsconfig.json | Update TS ref to core/types. |
| config/parse-overrides/tsconfig.json | Update TS ref to core/error. |
| config/package-is-installable/tsconfig.json | Update TS refs for core/* migration. |
| config/normalize-registries/tsconfig.json | Update TS ref to core/types. |
| config/deps-installer/tsconfig.json | Update TS refs for core migration and pkg-manifest/reader. |
| config/deps-installer/src/installConfigDeps.ts | Update import to @pnpm/pkg-manifest.reader. |
| config/deps-installer/package.json | Update dependency to @pnpm/pkg-manifest.reader. |
| config/commands/tsconfig.json | Update TS refs for core migration. |
| cli/utils/tsconfig.json | Update TS refs for core/* migration. |
| cli/parse-cli-args/tsconfig.json | Update TS ref to core/error. |
| cli/meta/tsconfig.json | Update TS ref to core/types. |
| cli/default-reporter/tsconfig.json | Update TS refs for core/* migration. |
| cli/commands/tsconfig.json | Update TS refs to core/error and core/logger. |
| catalogs/resolver/tsconfig.json | Update TS ref to core/error. |
| catalogs/config/tsconfig.json | Update TS ref to core/error. |
| cache/commands/tsconfig.json | Update TS refs to core/*. |
| cache/api/tsconfig.json | Update TS refs to core/*. |
| building/policy/tsconfig.json | Update TS ref to core/types. |
| building/pkg-requires-build/tsconfig.json | Update TS ref to core/types. |
| building/during-install/tsconfig.json | Update TS refs for core migration and pkg-manifest/reader. |
| building/during-install/src/index.ts | Update import to @pnpm/pkg-manifest.reader. |
| building/during-install/package.json | Update dependency to @pnpm/pkg-manifest.reader. |
| building/commands/tsconfig.json | Update TS refs for core migration and sorter rename. |
| building/commands/src/build/recursive.ts | Update import to @pnpm/workspace.projects-sorter. |
| building/commands/package.json | Update dependency to @pnpm/workspace.projects-sorter. |
| building/after-install/tsconfig.json | Update TS refs for core migration and pkg-manifest/reader. |
| building/after-install/src/index.ts | Update import to @pnpm/pkg-manifest.reader. |
| building/after-install/package.json | Update dependency to @pnpm/pkg-manifest.reader. |
| bins/resolver/tsconfig.json | Update TS ref to core/types. |
| bins/remover/tsconfig.json | Update TS refs for core migration and pkg-manifest/reader. |
| bins/remover/src/removeBins.ts | Update import to @pnpm/pkg-manifest.reader. |
| bins/remover/package.json | Update dependency to @pnpm/pkg-manifest.reader. |
| bins/linker/tsconfig.json | Update TS refs for core migration and pkg-manifest/reader. |
| bins/linker/src/index.ts | Update import to @pnpm/pkg-manifest.reader. |
| bins/linker/package.json | Update dependency to @pnpm/pkg-manifest.reader. |
| utils/prepare/tsconfig.json | Update TS ref to core/types. |
| utils/assert-store/tsconfig.json | Update TS ref to core/constants. |
| utils/assert-project/tsconfig.json | Update TS refs for core migration. |
| fixtures/workspace-has-shared-yarn-lock/package.json | Update fixture workspaces glob to core/**. |
| fixtures/workspace-has-shared-package-lock-json/package.json | Update fixture workspaces glob to core/**. |
| fixtures/workspace-has-shared-npm-shrinkwrap-json/package.json | Update fixture workspaces glob to core/**. |
| .meta-updater/tsconfig.json | Update TS refs for core migration. |
| .changeset/silver-geckos-hunt.md | Update changeset package name to @pnpm/engine.runtime.node-resolver. |
| .changeset/refactor-env-use-global-bin-linker.md | Update changeset package name to @pnpm/engine.runtime.node-resolver. |
| .changeset/polite-carpets-relax.md | Update changeset package names for renamed/moved packages; remove node fetcher entry. |
| .changeset/node-runtime-musl-support.md | Update changeset package name to @pnpm/engine.runtime.node-resolver. |
| .changeset/install-from-release-channels.md | Update changeset package name and narrative to @pnpm/engine.runtime.node-resolver. |
| .changeset/five-lies-travel.md | Update changeset package names for renamed/moved packages; remove node fetcher entry. |
| .changeset/env-cross-platform-musl.md | Remove changeset entry for removed node fetcher package. |
Files not reviewed (1)
- deps/inspection/list/test/fixtures/many-deps/pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
This was referenced Mar 18, 2026
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
workspace.sort-packages→workspace.projects-sorterworkspace.pkgs-graph→workspace.projects-graphpackages/directory →core/pkg-manifest.read-package-json→pkg-manifest.readerengine.runtime.node.fetcherpackageengine/runtime/node.resolver→node-resolver(dash convention)🤖 Generated with Claude Code