From b62569a3f0945bc2d72a409c0ce068ad676fbf9c Mon Sep 17 00:00:00 2001 From: Zack Tanner Date: Tue, 12 Sep 2023 16:52:22 -0700 Subject: [PATCH] revert accidental next-build changes --- packages/next/src/cli/next-build-args.ts | 4 ++-- packages/next/src/cli/next-build.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/next/src/cli/next-build-args.ts b/packages/next/src/cli/next-build-args.ts index 553dfa2f6480bf..814ac16df83964 100755 --- a/packages/next/src/cli/next-build-args.ts +++ b/packages/next/src/cli/next-build-args.ts @@ -8,8 +8,8 @@ export const validArgs: arg.Spec = { '--no-lint': Boolean, '--no-mangling': Boolean, '--experimental-app-only': Boolean, - '--turbo': Boolean, - '--turbo-root': String, + '--experimental-turbo': Boolean, + '--experimental-turbo-root': String, '--build-mode': String, // Aliases '-h': '--help', diff --git a/packages/next/src/cli/next-build.ts b/packages/next/src/cli/next-build.ts index b3c9fe7515b19d..223b772ff65784 100755 --- a/packages/next/src/cli/next-build.ts +++ b/packages/next/src/cli/next-build.ts @@ -25,7 +25,7 @@ const nextBuild: CliCommand = (args) => { --no-lint Disable linting --no-mangling Disable mangling --experimental-app-only Only build 'app' routes - --turbo Enable turbo mode + --experimental-turbo Enable experimental turbo mode --help, -h Displays this message `, 0 @@ -49,7 +49,7 @@ const nextBuild: CliCommand = (args) => { printAndExit(`> No such directory exists as the project root: ${dir}`) } - if (args['--turbo']) { + if (args['--experimental-turbo']) { process.env.TURBOPACK = '1' } @@ -61,7 +61,7 @@ const nextBuild: CliCommand = (args) => { args['--no-mangling'], args['--experimental-app-only'], !!process.env.TURBOPACK, - args['--turbo-root'], + args['--experimental-turbo-root'], args['--build-mode'] || 'default' ).catch((err) => { console.error('')