MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / defaultRemoveDeps

Function defaultRemoveDeps

src/upgrade/remove-binary.ts:231–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229}
230
231export function defaultRemoveDeps(): RemoveBinaryDeps {
232 return {
233 platform: process.platform,
234 execPath: process.execPath,
235 rm: (p) => fs.rmSync(p, { recursive: true, force: true }),
236 rename: (from, to) => fs.renameSync(from, to),
237 run: (cmd, args) => {
238 const res = spawnSync(cmd, args, { stdio: 'inherit', windowsHide: true, timeout: 120_000 });
239 return typeof res.status === 'number' ? res.status : -1;
240 },
241 };
242}
243
244/**
245 * Rename the running (locked) node.exe out of `dir` so the rest of the tree

Callers 1

executeBinaryRemovalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected