fix(coding-agent): omit devDependencies when installing packages (fixes #3009)

This commit is contained in:
Mario Zechner
2026-04-17 01:21:31 +02:00
parent 36bffc1d13
commit ef1fcfcec2
4 changed files with 50 additions and 3 deletions

View File

@@ -1597,7 +1597,7 @@ export class DefaultPackageManager implements PackageManager {
}
const packageJsonPath = join(targetDir, "package.json");
if (existsSync(packageJsonPath)) {
await this.runNpmCommand(["install"], { cwd: targetDir });
await this.runNpmCommand(["install", "--omit=dev"], { cwd: targetDir });
}
}
@@ -1632,7 +1632,7 @@ export class DefaultPackageManager implements PackageManager {
const packageJsonPath = join(targetDir, "package.json");
if (existsSync(packageJsonPath)) {
await this.runNpmCommand(["install"], { cwd: targetDir });
await this.runNpmCommand(["install", "--omit=dev"], { cwd: targetDir });
}
}