Skip to content

Commit

Permalink
fix(wb): don't use --bun to run 'pm2-runtime'
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu committed Aug 15, 2024
1 parent ab080fa commit f01e6ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/wb/src/scripts/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,7 @@ function configureEnv(env: Record<string, string | undefined>, 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;
}

0 comments on commit f01e6ca

Please sign in to comment.