(path: string)
| 23 | * Convert the path `path` to an `AbsoluteFsPath`, throwing an error if it's not an absolute path. |
| 24 | */ |
| 25 | export function absoluteFrom(path: string): AbsoluteFsPath { |
| 26 | if (!fs.isRooted(path)) { |
| 27 | throw new Error(`Internal Error: absoluteFrom(${path}): path is not absolute`); |
| 28 | } |
| 29 | return fs.resolve(path); |
| 30 | } |
| 31 | |
| 32 | const ABSOLUTE_PATH = Symbol('AbsolutePath'); |
| 33 |
searching dependent graphs…