(input: string)
| 29 | } |
| 30 | |
| 31 | export function shortWorkspaceHash(input: string): string { |
| 32 | return createHash('sha256').update(input).digest('hex').slice(0, 12); |
| 33 | } |
| 34 | |
| 35 | export function workspaceKeyForRoot(workspaceRoot: string): string { |
| 36 | return `${workspaceNameForRoot(workspaceRoot)}-${shortWorkspaceHash(workspaceRoot)}`; |
no test coverage detected