Skip to content

Commit

Permalink
chore(cli): fix the order --experimental-debug-memory-usage so it's…
Browse files Browse the repository at this point in the history
… alphabetical (#64264)

## Why?

This fixes the ordering of `--experimental-debug-memory-usage` so the
help output for experimental options are alphabetical/ordered properly
(grouped at the end).

- Related #63869

Closes NEXT-3054
  • Loading branch information
samcx authored Apr 9, 2024
1 parent 85b9ed5 commit 5e7e4bc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/next/src/bin/next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,10 @@ program
)}`
)
.option('-d, --debug', 'Enables a more verbose build output.')
.option(
'--experimental-debug-memory-usage',
'Enables memory profiling features to debug memory consumption.'
)
.option('--profile', 'Enables production profiling for React.')

.option('--no-lint', 'Disables linting.')
.option('--no-mangling', 'Disables mangling.')
.option('--profile', 'Enables production profiling for React.')
.option('--experimental-app-only', 'Builds only App Router routes.')
.addOption(new Option('--experimental-turbo').hideHelp())
.addOption(
Expand All @@ -122,6 +119,10 @@ program
.choices(['compile', 'generate'])
.default('default')
)
.option(
'--experimental-debug-memory-usage',
'Enables memory profiling features to debug memory consumption.'
)
.action((directory, options) =>
// ensure process exits after build completes so open handles/connections
// don't cause process to hang
Expand Down

0 comments on commit 5e7e4bc

Please sign in to comment.