Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(cli): fix the order --experimental-debug-memory-usage so it's alphabetical #64264

Merged
merged 2 commits into from
Apr 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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