rsnext/packages/create-next-app/templates
Balázs Orbán bca6ff77f9
fix(cna): separate dependencies/devDependencies (#55730)
### What?

As [discussed](https://vercel.slack.com/archives/C04DUD7EB1B/p1692183798097169), we should follow the ecosystem standard separation of dependencies and dev dependencies.

### Why?

This is a common issue/misunderstanding that we always have to explain separately, while there is no real benefit.

One counter-argument was that install times would be increased when we had to run install for `dependencies` and `devDependencies` separately, but that's easy to work around as explained below.

### How?

Instead of passing the `dependencies` array to the package manager in the CLI, we write these to the `package.json` file and then run the package manager's install command without the dependency arguments.

This will also reduce the number of writes to the `package.json` file from two to just one.

Ref: https://github.com/vercel/next.js/pull/42218, https://github.com/vercel/next.js/pull/48076, https://github.com/vercel/next.js/issues/54105, https://github.com/vercel/next.js/pull/42012, and more

[Slack thread](https://vercel.slack.com/archives/C04DUD7EB1B/p1692183798097169)


Co-authored-by: Steven <229881+styfle@users.noreply.github.com>
2023-09-21 15:30:37 +00:00
..
app create-next-app templates: Change bun run dev commands to bun dev (#55603) 2023-09-19 19:04:33 +00:00
app-tw create-next-app templates: Change bun run dev commands to bun dev (#55603) 2023-09-19 19:04:33 +00:00
default create-next-app templates: Change bun run dev commands to bun dev (#55603) 2023-09-19 19:04:33 +00:00
default-tw create-next-app templates: Change bun run dev commands to bun dev (#55603) 2023-09-19 19:04:33 +00:00
index.ts fix(cna): separate dependencies/devDependencies (#55730) 2023-09-21 15:30:37 +00:00
types.ts feat(cli): introduce --tailwind flag (#46927) 2023-03-16 16:06:27 +01:00