MCPcopy
hub / github.com/tailwindlabs/tailwindcss / remove

Function remove

packages/@tailwindcss-upgrade/src/utils/packages.ts:59–72  ·  view source on GitHub ↗
(packages: string[])

Source from the content-addressed store, hash-verified

57 return manifests.get(base).includes(`"${name}":`)
58 },
59 async remove(packages: string[]) {
60 let packageManager = await packageManagerForBase.get(base)
61 let command = `${packageManager} remove ${packages.join(' ')}`
62 try {
63 return await exec(command, { cwd: base })
64 } catch (e: any) {
65 error(`An error occurred while running \`${command}\`\n\n${e.stdout}\n${e.stderr}`, {
66 prefix: '↳ ',
67 })
68 throw e
69 } finally {
70 manifests.delete(base)
71 }
72 },
73 }
74}
75

Callers

nothing calls this directly

Calls 3

errorFunction · 0.90
execFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected