Skip to content

Commit

Permalink
revert accidental next-build changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ztanner committed Sep 12, 2023
1 parent 75e7181 commit b62569a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/next/src/cli/next-build-args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions packages/next/src/cli/next-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
}

Expand All @@ -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('')
Expand Down

0 comments on commit b62569a

Please sign in to comment.