| 59 | } |
| 60 | |
| 61 | export interface BinaryRemovalPlan { |
| 62 | /** Filesystem paths to delete (bundle dirs / artifacts, shim links). */ |
| 63 | paths: string[]; |
| 64 | /** The npm global package is installed and should be `npm uninstall -g`ed. */ |
| 65 | npmGlobal: boolean; |
| 66 | /** |
| 67 | * npm's global node_modules root (for the Windows locked-exe dance — the |
| 68 | * vendored node.exe lives in the SIBLING per-platform package, so the |
| 69 | * whole root is the lock surface, not just the meta package's dir). |
| 70 | */ |
| 71 | npmRoot: string | null; |
| 72 | /** Running from a git checkout — surfaced to the user, never deleted. */ |
| 73 | sourceRoot: string | null; |
| 74 | /** One human line per planned removal, for the confirm prompt. */ |
| 75 | summary: string[]; |
| 76 | } |
| 77 | |
| 78 | export function defaultProbes(filename: string): RemoveBinaryProbes { |
| 79 | return { |
nothing calls this directly
no outgoing calls
no test coverage detected