From 24a3af2f184112d935a8bedf7f8c1c2560c19a00 Mon Sep 17 00:00:00 2001 From: Matthias Van Parijs Date: Tue, 20 Aug 2024 16:58:36 +0200 Subject: [PATCH] chore: Added packager args log --- packages/artisan/src/consumer/workers/package.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/artisan/src/consumer/workers/package.ts b/packages/artisan/src/consumer/workers/package.ts index 9f42f6d7..ee3672e4 100644 --- a/packages/artisan/src/consumer/workers/package.ts +++ b/packages/artisan/src/consumer/workers/package.ts @@ -91,23 +91,16 @@ export default async function (job: Job) { const fakeRequire = createRequire(import.meta.url); const packagerBin = await fakeRequire.resolve("shaka-packager"); + job.log(packagerArgs.join("\n")); + const packagerProcess = fork(packagerBin, packagerArgs, { stdio: "inherit", cwd: outDir.name, detached: false, }); - // let outputStr = ""; - // packagerProcess.stdout?.on("data", (chunk) => { - // outputStr += chunk.toString(); - // }); - await once(packagerProcess, "close"); - // if (!outputStr.includes("Packaging completed")) { - // throw new Error("Failed to package"); - // } - await uploadFolder(outDir.name, `package/${job.data.assetId}/hls`, { del: true, commandInput: (input) => ({