next.js
47f73cd8 - refactor(cli): refactor cli to commander (#61877)

Commit
1 year ago
refactor(cli): refactor cli to commander (#61877) ## Description Refactor the [Next.js CLI](https://nextjs.org/docs/app/api-reference/next-cli) to use [commander](https://github.com/tj/commander.js) instead of [arg](https://github.com/vercel/arg). ## Why? - Auto-generated, properly formatted help command + output. With `arg`, much of the help commands were manually added via a single `console.log`, causing deviations over time. - Ergonomic, ease of adding new subcommands and rules ## Breaking Changes - Update the experimental `next experimental-compile` and `next experimental-generate` build commands in favor of `next build --experimental-build-mode=compile/generate` --------- Co-authored-by: JJ Kasper <jj@jjsweb.site>
Author
Parents
Loading