MCPcopy Create free account
hub / github.com/code-forge-io/Remix-Forge / installDevDependencies

Function installDevDependencies

src/utils/vscode.ts:133–144  ·  view source on GitHub ↗
(rootDir: vscode.Uri, depsToInstall: string[])

Source from the content-addressed store, hash-verified

131};
132
133export const installDevDependencies = async (rootDir: vscode.Uri, depsToInstall: string[]) => {
134 const pkg = getPackageJson(rootDir);
135 const packageManager = await getPackageManager(rootDir);
136 if (!pkg) {
137 return;
138 }
139 return runCommand({
140 rootDir,
141 title: "Installing dependencies",
142 command: `${packageManager} ${packageManager !== "npm" ? "add" : "install"} -D ${depsToInstall.join(" ")}`,
143 });
144};
145
146interface RunCommandOptions {
147 rootDir: vscode.Uri;

Callers 1

Calls 3

getPackageJsonFunction · 0.85
getPackageManagerFunction · 0.85
runCommandFunction · 0.85

Tested by

no test coverage detected