Skip to content

Function: workspaceRootAbove()

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

function workspaceRootAbove(from, __namedParameters): Promise<string | undefined>;

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

The root of the workspace that holds the folder from: the folder of the nearest pnpm-workspace.yaml at or above it, or undefined, of a folder of none.

Parameters

ParameterType
fromstring
__namedParametersWorkspaceOptions

Returns

Promise<string | undefined>