Skip to content

Commit

Permalink
fix: prefer --turbopack over --turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu committed Oct 25, 2024
1 parent 47afee4 commit 7072c67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/wb/src/scripts/execution/nextScripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class NextScripts extends BaseScripts {

override start(project: Project, argv: ScriptArgv): string {
return `YARN concurrently --raw --kill-others-on-fail
"next dev --turbo ${argv.normalizedArgsText ?? ''}"
"next dev --turbopack ${argv.normalizedArgsText ?? ''}"
"${this.waitAndOpenApp(project, argv)}"`;
}

Expand Down Expand Up @@ -48,13 +48,13 @@ class NextScripts extends BaseScripts {
override testE2EDev(
project: Project,
argv: TestArgv,
{ startCommand = 'next dev --turbo -p 8080' }: TestE2EDevOptions
{ startCommand = 'next dev --turbopack -p 8080' }: TestE2EDevOptions
): string {
return super.testE2EDev(project, argv, { startCommand });
}

override testStart(project: Project, argv: ScriptArgv): string {
return `WB_ENV=${process.env.WB_ENV} YARN concurrently --kill-others --raw --success first "next dev --turbo" "${this.waitApp(project, argv)}"`;
return `WB_ENV=${process.env.WB_ENV} YARN concurrently --kill-others --raw --success first "next dev --turbopack" "${this.waitApp(project, argv)}"`;
}
}

Expand Down

0 comments on commit 7072c67

Please sign in to comment.