Unverified Commit 5e7e4bc0 authored by Sam Ko's avatar Sam Ko Committed by GitHub

chore(cli): fix the order `--experimental-debug-memory-usage` so it's 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 https://github.com/vercel/next.js/pull/63869

Closes NEXT-3054
parent 85b9ed5e
...@@ -105,13 +105,10 @@ program ...@@ -105,13 +105,10 @@ program
)}` )}`
) )
.option('-d, --debug', 'Enables a more verbose build output.') .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-lint', 'Disables linting.')
.option('--no-mangling', 'Disables mangling.') .option('--no-mangling', 'Disables mangling.')
.option('--profile', 'Enables production profiling for React.')
.option('--experimental-app-only', 'Builds only App Router routes.') .option('--experimental-app-only', 'Builds only App Router routes.')
.addOption(new Option('--experimental-turbo').hideHelp()) .addOption(new Option('--experimental-turbo').hideHelp())
.addOption( .addOption(
...@@ -122,6 +119,10 @@ program ...@@ -122,6 +119,10 @@ program
.choices(['compile', 'generate']) .choices(['compile', 'generate'])
.default('default') .default('default')
) )
.option(
'--experimental-debug-memory-usage',
'Enables memory profiling features to debug memory consumption.'
)
.action((directory, options) => .action((directory, options) =>
// ensure process exits after build completes so open handles/connections // ensure process exits after build completes so open handles/connections
// don't cause process to hang // don't cause process to hang
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment