Skip to content

Function: packagesOf()

Documentation / @wtf/project-resolve / workspace / packagesOf

function packagesOf(root, __namedParameters): Promise<WorkspacePackage[]>;

Defined in: packages/project-resolve/src/workspace.ts:710

Each package of the workspace at root, in its packages/, with an export map, in the order of their folders: those its package manager reads (workspaceAt), so a folder of packages/ it does not name, as a git submodule of a repo of its own, is none. Of a workspace that names none, or whose file cannot be read, as a pnpm-workspace.yaml of packages that are no list, or one the file system fails to read, each folder of packages/, and nothing said: a process the hook is given to starts as it would. A folder with no package.json is no package, but the leftover of a moved one: git checkout removes its tracked files, and leaves its dist/ and node_modules/ behind.

Parameters

ParameterType
rootstring
__namedParametersWorkspaceOptions

Returns

Promise<WorkspacePackage[]>