refactor: reorganize monorepo domain structure#10987
Merged
Merged
Conversation
5378bcb to
7e787d1
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Reorganizes the monorepo domain layout by moving packages into new top-level domains and updating TypeScript project references and package metadata URLs to match the new locations.
Changes:
- Added/updated
tsconfig.json/tsconfig.lint.jsonproject references and include paths to reflect the new directory structure. - Updated
package.jsonrepository/homepagelinks for moved packages. - Introduced missing per-package TS configs for newly relocated compliance packages.
Reviewed changes
Copilot reviewed 44 out of 1049 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| deps/compliance/sbom/tsconfig.lint.json | Adds lint tsconfig with updated include paths after move. |
| deps/compliance/sbom/tsconfig.json | Adds package TS project config and references under new domain. |
| deps/compliance/sbom/test/tsconfig.json | Adds test TS config with correct root-relative typings include. |
| deps/compliance/sbom/package.json | Updates repository/homepage URLs to new path. |
| deps/compliance/plugin-commands-sbom/tsconfig.lint.json | Adds lint tsconfig for moved plugin package. |
| deps/compliance/plugin-commands-sbom/tsconfig.json | Adds TS project config/references for relocated plugin package. |
| deps/compliance/plugin-commands-sbom/test/tsconfig.json | Adds test TS config for relocated plugin package. |
| deps/compliance/plugin-commands-sbom/package.json | Updates repository/homepage URLs to new path. |
| deps/compliance/plugin-commands-licenses/tsconfig.lint.json | Fixes typings include path depth after move. |
| deps/compliance/plugin-commands-licenses/tsconfig.json | Adds TS project config/references under new domain. |
| deps/compliance/plugin-commands-licenses/test/tsconfig.json | Fixes test typings include path depth after move. |
| deps/compliance/plugin-commands-licenses/package.json | Updates repository/homepage URLs to new path. |
| deps/compliance/plugin-commands-audit/tsconfig.lint.json | Fixes typings include path depth after move. |
| deps/compliance/plugin-commands-audit/tsconfig.json | Adds TS project config/references under new domain. |
| deps/compliance/plugin-commands-audit/test/tsconfig.json | Fixes test typings include path depth after move. |
| deps/compliance/plugin-commands-audit/package.json | Updates repository/homepage URLs to new path. |
| deps/compliance/license-scanner/tsconfig.lint.json | Fixes typings include path depth after move. |
| deps/compliance/license-scanner/tsconfig.json | Adds TS project config/references under new domain. |
| deps/compliance/license-scanner/test/tsconfig.json | Fixes test typings include path depth after move. |
| deps/compliance/license-scanner/package.json | Updates repository/homepage URLs to new path. |
| deps/compliance/audit/tsconfig.lint.json | Fixes typings include path depth after move. |
| deps/compliance/audit/tsconfig.json | Adds TS project config/references under new domain. |
| deps/compliance/audit/test/tsconfig.json | Fixes test typings include path depth after move. |
| deps/compliance/audit/package.json | Updates repository/homepage URLs to new path. |
| deps/calc-dep-state/tsconfig.json | Updates project references to new locations (constants/types/dependency-path). |
| deps/calc-dep-state/package.json | Updates repository/homepage URLs to new path. |
| crypto/shasums-file/tsconfig.json | Updates reference for fetching-types new domain location. |
| config/plugin-commands-config/tsconfig.json | Updates naming-cases reference to text/ domain. |
| config/parse-overrides/tsconfig.json | Updates parse-wanted-dependency reference to resolving/. |
| config/package-is-installable/tsconfig.json | Updates engine runtime reference path after env → engine. |
| config/deps-installer/tsconfig.json | Repoints references for moved installer/resolver-related projects. |
| config/config/tsconfig.json | Updates references for moved git-utils and naming-cases. |
| cli/plugin-commands-doctor/tsconfig.json | Updates references after CLI domain consolidation. |
| cli/plugin-commands-doctor/package.json | Updates repository/homepage URLs to new path. |
| cli/plugin-commands-completion/tsconfig.json | Updates references after completion/ merged into cli/. |
| cli/plugin-commands-completion/package.json | Updates repository/homepage URLs to new path. |
| cli/default-reporter/tsconfig.json | Updates dedupe/render-peer-issues references to new installing/ locations. |
| building/policy-commands/tsconfig.json | Updates references for moved dependency-path and modules-yaml. |
| building/during-install/tsconfig.json | Updates references for moved bins/install pipeline projects. |
| building/after-install/tsconfig.json | Updates references for moved bins/install pipeline projects. |
| bins/remove-bins/package.json | Updates repository/homepage URLs to new path. |
| bins/package-bins/package.json | Updates repository/homepage URLs to new path. |
| bins/link-bins/package.json | Updates repository/homepage URLs to new path. |
| utils/assert-project/tsconfig.json | Updates modules-yaml reference to new installing/ location. |
💡 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.
Reorganize the monorepo's top-level domain directories for clarity: - pkg-manager/ split into: - installing/ (core, headless, client, resolve-dependencies, etc.) - installing/linking/ (hoist, direct-dep-linker, modules-cleaner, etc.) - bins/ (link-bins, package-bins, remove-bins) - completion/ merged into cli/ - dedupe/ moved to installing/dedupe/ - env/ renamed to engine/ with subdomains: - engine/runtime/ (node.fetcher, node.resolver, plugin-commands-env, etc.) - engine/pm/ (plugin-commands-setup, plugin-commands-self-updater) - env.path moved to shell/ - tools/ and runtime/ dissolved - reviewing/ and lockfile audit packages moved to deps/: - deps/inspection/ (list, outdated, dependencies-hierarchy) - deps/compliance/ (audit, licenses, sbom) - registry/ moved to resolving/registry/ - semver/peer-range moved to deps/ - network/fetching-types moved to fetching/ - packages/ slimmed down, moving packages to proper domains: - calc-dep-state, dependency-path -> deps/ - parse-wanted-dependency -> resolving/ - git-utils -> network/ - naming-cases -> text/ - make-dedicated-lockfile -> lockfile/ - render-peer-issues -> installing/ - plugin-commands-doctor -> cli/ - plugin-commands-init -> workspace/ Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7e787d1 to
b76ac1c
Compare
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
Reorganize the monorepo's top-level domain directories for better clarity and cohesion.
Changes
pkg-manager/split intoinstalling/,installing/linking/, andbins/completion/merged intocli/dedupe/moved toinstalling/dedupe/env/renamed toengine/withengine/runtime/andengine/pm/subdomainstools/andruntime/dissolved intoengine/reviewing/and lockfile audit packages moved todeps/inspection/anddeps/compliance/registry/moved toresolving/registry/semver/peer-rangemoved todeps/network/fetching-typesmoved tofetching/packages/slimmed down — moved packages to their proper domainsenv.pathmoved toshell/plugin-commands-initmoved toworkspace/Final domain structure
No code changes — only directory moves and tsconfig/workspace reference updates.
Test plan
pnpm installsucceedspnpm run compilesucceeds (typecheck + bundle + meta-updater)