MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / uninstallPackage

Function uninstallPackage

packages/bumpy/src/commands/init.ts:211–221  ·  view source on GitHub ↗
(pm: string, pkgName: string, rootDir: string)

Source from the content-addressed store, hash-verified

209}
210
211async function uninstallPackage(pm: string, pkgName: string, rootDir: string): Promise<void> {
212 const cmd = `${PM_REMOVE[pm] || 'npm uninstall'} ${pkgName}`;
213 log.step(`Uninstalling ${pkgName}...`);
214 try {
215 run(cmd, { cwd: rootDir });
216 log.dim(` ${cmd}`);
217 } catch (err) {
218 log.warn(`Failed to uninstall ${pkgName}: ${err instanceof Error ? err.message : err}`);
219 log.dim(` Run manually: ${cmd}`);
220 }
221}
222
223/** Patterns to detect in workflow files, with suggested replacements */
224const CHANGESET_PATTERNS: Array<{ pattern: RegExp; replacement: string }> = [

Callers 1

initCommandFunction · 0.85

Calls 1

runFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…