From f01e6ca19c6455a109c990f2a147106685bbbd1f Mon Sep 17 00:00:00 2001 From: "Sakamoto, Kazunori" Date: Thu, 15 Aug 2024 23:32:07 +0900 Subject: [PATCH] fix(wb): don't use --bun to run 'pm2-runtime' --- packages/wb/src/scripts/run.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/wb/src/scripts/run.ts b/packages/wb/src/scripts/run.ts index a2771870..659b6610 100644 --- a/packages/wb/src/scripts/run.ts +++ b/packages/wb/src/scripts/run.ts @@ -151,5 +151,7 @@ function configureEnv(env: Record, opts: Options): R } function fixBunCommand(command: string): string { - return command.includes('next dev') ? command.replaceAll('bun --bun', 'bun') : command; + return command.includes('next dev') || command.includes('pm2-runtime') + ? command.replaceAll('bun --bun', 'bun') + : command; }