rsnext/test/integration/create-next-app
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
..
lib fix(cna): separate dependencies/devDependencies (#55730) 2023-09-21 15:30:37 +00:00
index.test.ts Break up large test suites (#50458) 2023-05-28 13:59:41 -07:00
package-manager.test.ts chore: update to pnpm@8.6.11 (#50923) 2023-08-04 19:40:20 +00:00
templates-app.test.ts Break up large test suites (#50458) 2023-05-28 13:59:41 -07:00
templates-pages.test.ts Break up large test suites (#50458) 2023-05-28 13:59:41 -07:00