relizy / parseWorkspaceProtocol
Function: parseWorkspaceProtocol()
parseWorkspaceProtocol(
dependencyName,specifier): {range:string;target:string; } |null
Defined in: src/core/dependencies.ts:195
The workspace package and the range of a workspace: specifier, also through an alias (workspace:other-name@^), or null for another protocol.
Parameters
dependencyName
string
specifier
string
Returns
{ range: string; target: string; } | null