Skip to content

Function: sourcesOf()

Documentation / @wtf/project-resolve / hooks / sourcesOf

function sourcesOf(packages): ReadonlyMap<string, string>;

Defined in: packages/project-resolve/src/hooks.ts:29

The TypeScript of each package of the workspace, and of each subpath it exports, by its @wtf/source condition, keyed by the specifier that imports it: @scope/lib, @scope/lib/sub.

Parameters

ParameterType
packagesreadonly WorkspacePackage[]

Returns

ReadonlyMap<string, string>