Skip to content

Commit

Permalink
chore: Added packager args log
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Aug 20, 2024
1 parent 119e521 commit 24a3af2
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/artisan/src/consumer/workers/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,23 +91,16 @@ export default async function (job: Job<PackageData, PackageResult>) {
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) => ({
Expand Down

0 comments on commit 24a3af2

Please sign in to comment.