From 3274d195741336fcf313a79c8d6f4d08b55efee6 Mon Sep 17 00:00:00 2001 From: yiling Date: Mon, 20 Jul 2026 16:12:59 +0800 Subject: [PATCH] fix(transcode): mark pdfkit as external and extract for docker runtime --- build.ts | 1 + scripts/build-npm.ts | 1 + scripts/extract-runtime-deps.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/build.ts b/build.ts index b9a7e346..61150119 100644 --- a/build.ts +++ b/build.ts @@ -34,6 +34,7 @@ await Bun.build({ '@temporalio/client', '@temporalio/worker', '@temporalio/workflow', + 'pdfkit', ], // compile: { // outfile: 'Shumai', diff --git a/scripts/build-npm.ts b/scripts/build-npm.ts index 99da29f8..0352d231 100644 --- a/scripts/build-npm.ts +++ b/scripts/build-npm.ts @@ -33,6 +33,7 @@ const commonExternal = [ '@temporalio/client', '@temporalio/worker', '@temporalio/workflow', + 'pdfkit', 'prisma', 'zod', ] diff --git a/scripts/extract-runtime-deps.ts b/scripts/extract-runtime-deps.ts index a01dec85..de2e1616 100644 --- a/scripts/extract-runtime-deps.ts +++ b/scripts/extract-runtime-deps.ts @@ -13,6 +13,7 @@ const depsToExtract = [ '@temporalio/client', '@temporalio/worker', '@temporalio/workflow', + 'pdfkit', 'prisma', 'sharp', ]