3622 Commits

Author SHA1 Message Date
nextjs-bot d5f649b2f4 v16.2.3 2026-04-08 18:24:27 +00:00
nextjs-bot 52faae3d94 v16.2.2 2026-03-31 23:39:18 +00:00
Jude Gao c4779d1b08 [create-next-app] Skip interactive prompts when CLI flags are provided (#91840)
When AI agents run `create-next-app` with explicit flags like
`--typescript --tailwind --eslint --app --src-dir`, the CLI still enters
interactive mode and prompts for any unspecified options:

```
➜ npx create-next-app my-app --typescript --tailwind --eslint --app --src-dir --use-pnpm
✔ Would you like to use React Compiler? … No / Yes
✔ Would you like to customize the import alias (`@/*` by default)? … No / Yes
? Would you like to include AGENTS.md to guide coding agents to write up-to-date Next.js code? › No / Yes
```

Agents can sometimes answer these interactive prompts correctly, but
often they can't. When they fail to navigate the prompts, they fall back
to scaffolding the project themselves from scratch — generating files
based on stale training data. This means they might initialize an app
using deprecated patterns or pin to an older version of Next.js (e.g.
15) instead of the latest. Using `create-next-app` non-interactively is
the best way to ensure agents always produce up-to-date scaffolding.

Previously, `hasProvidedOptions` only skipped the initial "use
recommended defaults?" meta-prompt but still showed individual prompts
for each missing option. Now when any config flags are provided, all
remaining options use the recommended defaults without prompting.

The resolved defaults are printed to stdout so the caller knows exactly
what was assumed and which flags to pass to override:

```
Using defaults for unprovided options:

  --eslint                ESLint (use --biome for Biome, --no-eslint for None)
  --no-react-compiler     No React Compiler (use --react-compiler for React Compiler)
  --agents-md             AGENTS.md (use --no-agents-md for No AGENTS.md)
  --import-alias          "@/*"

To customize, re-run with explicit flags.
```

The `displayConfig` array is extended with a `flags` field so this
output is auto-generated from the same source of truth used for the
interactive prompts. Existing behavior for `--yes`, CI mode, and fully
interactive mode (no flags) is unchanged.
2026-03-31 14:53:34 -07:00
nextjs-bot ed7d2cef24 v16.2.1 2026-03-20 23:23:58 +00:00
nextjs-bot c5c94dffbf v16.2.0 2026-03-18 17:10:38 +00:00
nextjs-bot 3683192a6b v16.2.0-canary.104 2026-03-18 13:29:38 +00:00
nextjs-bot 668981482a v16.2.0-canary.103 2026-03-17 23:26:26 +00:00
nextjs-bot ad66dbc89b v16.2.0-canary.102 2026-03-17 16:29:40 +00:00
nextjs-bot b856498430 v16.2.0-canary.101 2026-03-16 23:26:23 +00:00
nextjs-bot 136b77e4d9 v16.2.0-canary.100 2026-03-15 23:25:56 +00:00
nextjs-bot 0f599731b8 v16.2.0-canary.99 2026-03-14 23:26:11 +00:00
nextjs-bot 792522d2b3 v16.2.0-canary.98 2026-03-14 01:26:04 +00:00
nextjs-bot 2769b55586 v16.2.0-canary.97 2026-03-13 23:25:42 +00:00
nextjs-bot 80385f5340 v16.2.0-canary.96 2026-03-13 17:52:41 +00:00
nextjs-bot 96b6c00749 v16.2.0-canary.95 2026-03-12 23:26:22 +00:00
nextjs-bot a7bd1a1f7e v16.2.0-canary.94 2026-03-12 15:38:41 +00:00
Sebastian "Sebbie" Silbermann e785963a1d [cna] Bump picocolors to 1.1.1 (#91252)
Required to work with TypeScript 6.0

The package itself is vendored into `create-next-app`.

Includes
1. https://github.com/alexeyraspopov/picocolors/releases/tag/v1.1.1
1. https://github.com/alexeyraspopov/picocolors/releases/tag/v1.1.0
1. https://github.com/alexeyraspopov/picocolors/releases/tag/v1.0.1
2026-03-12 13:53:36 +01:00
nextjs-bot b4efbdbd1b v16.2.0-canary.93 2026-03-11 23:25:28 +00:00
nextjs-bot 29812f268e v16.2.0-canary.92 2026-03-11 17:34:26 +00:00
nextjs-bot c44558be7a v16.2.0-canary.91 2026-03-10 23:26:04 +00:00
nextjs-bot 36698c9463 v16.2.0-canary.90 2026-03-10 21:42:05 +00:00
nextjs-bot 110ed228bb v16.2.0-canary.89 2026-03-10 17:20:38 +00:00
nextjs-bot 4271c8b83d v16.2.0-canary.88 2026-03-10 12:12:16 +00:00
nextjs-bot 92b854ddaf v16.2.0-canary.87 2026-03-09 23:25:47 +00:00
nextjs-bot 2ecfbfc1cd v16.2.0-canary.86 2026-03-09 23:03:36 +00:00
nextjs-bot 34d0bcb942 v16.2.0-canary.85 2026-03-07 23:25:12 +00:00
nextjs-bot 65fe53d421 v16.2.0-canary.84 2026-03-06 23:25:42 +00:00
nextjs-bot 12c8715b62 v16.2.0-canary.83 2026-03-06 17:52:35 +00:00
nextjs-bot d1fcd201b5 v16.2.0-canary.82 2026-03-06 06:21:24 +00:00
nextjs-bot 16206a7f0b v16.2.0-canary.81 2026-03-05 23:39:01 +00:00
nextjs-bot d5b348fc29 v16.2.0-canary.80 2026-03-04 23:26:30 +00:00
nextjs-bot 63292fc22e v16.2.0-canary.79 2026-03-04 21:40:41 +00:00
nextjs-bot 8bd3a2abb1 v16.2.0-canary.78 2026-03-04 19:25:51 +00:00
nextjs-bot 4c379cad09 v16.2.0-canary.77 2026-03-04 13:18:38 +00:00
nextjs-bot 32d8a9bfd5 v16.2.0-canary.76 2026-03-04 00:01:25 +00:00
nextjs-bot 2ae779cf11 v16.2.0-canary.75 2026-03-03 23:25:40 +00:00
nextjs-bot e26929249c v16.2.0-canary.74 2026-03-03 19:17:40 +00:00
nextjs-bot 82db94494a v16.2.0-canary.73 2026-03-03 10:23:54 +00:00
nextjs-bot dd4a97e1f4 v16.2.0-canary.72 2026-03-02 23:25:51 +00:00
nextjs-bot 9c17e9e7a8 v16.2.0-canary.71 2026-03-02 16:29:59 +00:00
nextjs-bot 5e3af2ceab v16.2.0-canary.70 2026-03-01 23:25:22 +00:00
nextjs-bot fb694e9d7a v16.2.0-canary.69 2026-02-28 22:39:14 +00:00
nextjs-bot 2071a816f4 v16.2.0-canary.68 2026-02-28 01:20:47 +00:00
nextjs-bot 39e8fb2a48 v16.2.0-canary.67 2026-02-27 23:25:14 +00:00
nextjs-bot 36cadbf59d v16.2.0-canary.66 2026-02-27 18:45:11 +00:00
nextjs-bot 350ce78c75 v16.2.0-canary.65 2026-02-27 02:10:00 +00:00
nextjs-bot 8f5afa357d v16.2.0-canary.64 2026-02-26 23:26:07 +00:00
nextjs-bot b6d47641d7 v16.2.0-canary.63 2026-02-26 20:30:47 +00:00
nextjs-bot e046f052e7 v16.2.0-canary.62 2026-02-25 23:25:57 +00:00
nextjs-bot 97be0f52e7 v16.2.0-canary.61 2026-02-25 10:34:07 +00:00