packageRoot
function packageRoot(dir): string;Defined in: src/build/api-surface.ts:87
Locate the package root: dir itself, or its parent when dir is the dist/ folder.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
dir |
string |
Returns
Section titled “Returns”string