* Replace home-directory prefix in a path with `~/` for cleaner log * lines. Pure cosmetic.
(p: string)
| 459 | * lines. Pure cosmetic. |
| 460 | */ |
| 461 | function tildify(p: string): string { |
| 462 | const home = require('os').homedir(); |
| 463 | if (p.startsWith(home + path.sep)) return '~' + p.substring(home.length); |
| 464 | return p; |
| 465 | } |
| 466 | |
| 467 | async function resolveTargets( |
| 468 | clack: typeof import('@clack/prompts'), |
no outgoing calls
no test coverage detected