From 2eb49b7d41b5de6f6b2ec5d50739834268828b23 Mon Sep 17 00:00:00 2001 From: Case Wylie Date: Mon, 27 Jan 2025 10:24:11 -0500 Subject: [PATCH] remove unused import Signed-off-by: Case Wylie --- integration/cli/build.noembed.test.ts | 3 +-- src/cli/build.helpers.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/integration/cli/build.noembed.test.ts b/integration/cli/build.noembed.test.ts index b99ba8ddb..42f38750d 100644 --- a/integration/cli/build.noembed.test.ts +++ b/integration/cli/build.noembed.test.ts @@ -48,8 +48,7 @@ describe("build", () => { const argz = [`--no-embed`].join(" "); const build = await pepr.cli(testModule, { cmd: `pepr build ${argz}` }); expect(build.exitcode).toBe(0); - expect(build.stderr.join("").trim()).toContain("Error: Cannot find module"); - expect(build.stdout.join("").trim()).toContain(""); + expect(build.stdout.join("").trim()).toContain("Module built successfully at"); packageJson = await resource.fromFile(`${testModule}/package.json`); uuid = packageJson.pepr.uuid; diff --git a/src/cli/build.helpers.ts b/src/cli/build.helpers.ts index 4690e045d..8639bb782 100644 --- a/src/cli/build.helpers.ts +++ b/src/cli/build.helpers.ts @@ -123,7 +123,7 @@ export async function handleCustomImageBuild( export function handleEmbedding(embed: boolean, path: string): void { if (!embed) { console.info(`✅ Module built successfully at ${path}`); - return; + process.exit(0); } }