diff --git a/packages/cli/src/commands/plugin/build.ts b/packages/cli/src/commands/plugin/build.ts index fac78b650a..d0bc932a32 100644 --- a/packages/cli/src/commands/plugin/build.ts +++ b/packages/cli/src/commands/plugin/build.ts @@ -21,6 +21,7 @@ export default async (cmd: Command) => { if (result.error) { throw result.error; } + process.exit(result.status ?? 0); } catch (error) { process.stderr.write(`${chalk.red(error.message)}\n`); process.exit(1); diff --git a/packages/cli/src/commands/plugin/lint.ts b/packages/cli/src/commands/plugin/lint.ts index 7c5be33147..2f446b0f32 100644 --- a/packages/cli/src/commands/plugin/lint.ts +++ b/packages/cli/src/commands/plugin/lint.ts @@ -9,6 +9,7 @@ export default async () => { if (result.error) { throw result.error; } + process.exit(result.status ?? 0); } catch (error) { process.stderr.write(`${chalk.red(error.message)}\n`); process.exit(1); diff --git a/packages/cli/src/commands/plugin/test.ts b/packages/cli/src/commands/plugin/test.ts index 6667f97055..e0433abb24 100644 --- a/packages/cli/src/commands/plugin/test.ts +++ b/packages/cli/src/commands/plugin/test.ts @@ -14,6 +14,7 @@ export default async (cmd: Command) => { if (result.error) { throw result.error; } + process.exit(result.status ?? 0); } catch (error) { process.stderr.write(`${chalk.red(error.message)}\n`); process.exit(1);