Skip to content

Commit 9607189

Browse files
committed
revert
1 parent 87c4352 commit 9607189

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/cli/commands/add/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -545,10 +545,7 @@ async function runAdders({
545545
if (workspace.packageManager === 'npm') args.unshift('--yes');
546546

547547
try {
548-
const { stderr } = await exec(command, args, {
549-
nodeOptions: { cwd: workspace.cwd, stdio: script.stdio }
550-
});
551-
if (stderr) throw new Error(stderr);
548+
await exec(command, args, { nodeOptions: { cwd: workspace.cwd, stdio: script.stdio } });
552549
} catch (error) {
553550
const typedError = error as Error;
554551
throw new Error(

packages/cli/common.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ export async function installDependencies(agent: AgentName, cwd: string) {
7676
spinner.start('Installing dependencies...');
7777
try {
7878
const { command, args } = constructCommand(COMMANDS[agent].install, [])!;
79-
const { stderr } = await exec(command, args, { nodeOptions: { cwd } });
80-
if (stderr) throw new Error(stderr);
79+
await exec(command, args, { nodeOptions: { cwd } });
8180

8281
spinner.stop('Successfully installed dependencies');
8382
} catch (error) {

0 commit comments

Comments
 (0)