Skip to content

Repository script API / utils/tool-packages / sourcePrerequisitePaths

Function: sourcePrerequisitePaths() ​

sourcePrerequisitePaths(root, packagePath, pathsByName): Set<string>

Defined in: utils/tool-packages.mjs:337

Finds workspace tool dependencies declared by a package or its packed templates.

Parameters ​

root ​

string

Workspace root containing the package.

packagePath ​

string

Workspace path of the package to inspect.

pathsByName ​

Map<string, string>

Workspace paths indexed by package name.

Returns ​

Set<string>

Workspace paths of declared dependencies present in the workspace.

pumpkin-plugins documentation