Short stable identifier for a project root — used in tmpdir/pipe names.
(projectRoot: string)
| 38 | |
| 39 | /** Short stable identifier for a project root — used in tmpdir/pipe names. */ |
| 40 | function projectHash(projectRoot: string): string { |
| 41 | return crypto.createHash('sha256').update(path.resolve(projectRoot)).digest('hex').slice(0, 16); |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * The deterministic tmpdir socket path for `projectRoot` — the fallback used |
no test coverage detected