(fromDir?: string)
| 140 | } |
| 141 | |
| 142 | export const assertPackageRoot = (fromDir?: string): string => { |
| 143 | const startDir = fromDir ?? dirOfCaller() |
| 144 | const result = findPackageRoot(fromDir) |
| 145 | if (result) return result |
| 146 | |
| 147 | throw new Error(`${startDir} is not part of a node package.`) |
| 148 | } |
| 149 | |
| 150 | export const findPackageAncestors = (fromDir?: string): string[] => { |
| 151 | const dirs: string[] = [] |
no test coverage detected
searching dependent graphs…