/** * Workspace detection shared by the discovery scanner and knowledge seeding. * * Handles pnpm workspaces (`pnpm-workspace.yaml`), npm/yarn workspaces * (`package.json#workspaces`), and plain single-package projects. Each * detected package contributes its own root for module/dependency scanning * (KG Req 8.2 — monorepo layouts with per-package src dirs). * * @module */ export interface WorkspacePackage { /** Package name from its package.json, or the directory name. */ name: string; /** Absolute path to the package root. */ root: string; /** Path relative to the project root ('' for the project root itself). */ relPath: string; } /** * List the packages of a project: workspace members if the root declares * workspaces, otherwise just the root itself. */ export declare function detectWorkspacePackages(projectRoot: string): WorkspacePackage[]; //# sourceMappingURL=workspaces.d.ts.map