rsnext/test/production
JJ Kasper ec25b4742b
Add handling for auto installing TypeScript deps and HMRing tsconfig (#39838)
This adds handling for auto-detecting TypeScript being added to a project and installing the necessary dependencies instead of printing the command and requiring the user run the command. We have been testing the auto install handling for a while now with the `next lint` command and it has worked out pretty well. 

This also adds HMR handling for `jsconfig.json`/`tsconfig.json` in development so if the `baseURL` or `paths` configs are modified it doesn't require a dev server restart for the updates to be picked up. 

This also corrects our required dependencies detection as previously an incorrect `paths: []` value was being passed to `require.resolve` causing it to fail in specific situations.

Closes: https://github.com/vercel/next.js/issues/36201

### `next build` before

https://user-images.githubusercontent.com/22380829/186039578-75f8c128-a13d-4e07-b5da-13bf186ee011.mp4

### `next build` after


https://user-images.githubusercontent.com/22380829/186039662-57af22a4-da5c-4ede-94ea-96541a032cca.mp4

### `next dev` automatic setup and HMR handling

https://user-images.githubusercontent.com/22380829/186039678-d78469ef-d00b-4ee6-8163-a4706394a7b4.mp4


## Bug

- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [x] Errors have helpful link attached, see `contributing.md`
2022-08-23 13:16:47 -05:00
..
dependencies-can-use-env-vars-in-middlewares feat(middleware)!: forbids middleware response body (#36835) 2022-05-19 22:02:20 +00:00
edge-runtime-is-addressable Upgrade edge-runtime + make EdgeRuntime value overridable with an env var on compilation (#38331) 2022-07-12 15:18:59 +00:00
emit-decorator-metadata Add decoratorMetadata flag if enabled by tsconfig (#32914) 2022-02-06 16:48:09 +00:00
enoent-during-require Ensure ENOENT error is not ignored when loading pages (#37486) 2022-06-06 14:35:26 -04:00
escheck-output Fix failing escheck test (#39365) 2022-08-05 12:30:42 -05:00
eslint-plugin-deps Ensure eslint plugins dont conflict (#35667) 2022-03-28 12:31:30 -05:00
exported-runtimes-value-validation feat: enhance warning messages about unanalyzable config field (#38907) 2022-07-22 19:31:47 +00:00
fallback-export-error Update check for fallback pages during export (#33323) 2022-01-17 14:44:45 +00:00
fatal-render-errror Ensure default _app is used when falling back to default _error (#39467) 2022-08-10 11:36:22 -05:00
generate-middleware-source-maps [edge] enable edge compiler source maps by default (#38365) 2022-07-06 18:17:57 +00:00
jest chore: use pnpm install in tests (#37712) 2022-06-16 18:08:07 +00:00
middleware-environment-variables-in-node-server-reflect-the-usage-inference feat(middleware)!: forbids middleware response body (#36835) 2022-05-19 22:02:20 +00:00
middleware-is-not-allowed-when-using-serverless-target Throw an error when target: 'serverless' is used with Middleware (#37819) 2022-06-19 13:17:18 +00:00
middleware-typescript Export URLPattern from next/server (#39219) 2022-08-02 02:04:08 +00:00
minimal-mode-response-cache Move outputStandalone config (#37994) 2022-06-24 14:58:35 -05:00
pnpm-support Move outputStandalone config (#37994) 2022-06-24 14:58:35 -05:00
postcss-plugin-config-as-string allow to provide postcss plugin options as a string (#35173) 2022-04-08 16:58:50 +00:00
prerender-prefetch Add config for opting out of optimistic client cache behavior (#38774) 2022-07-26 10:27:39 -05:00
react-18-streaming-ssr Remove RSC rendering from render (#39045) 2022-07-27 22:11:02 +00:00
reading-request-body-in-middleware feat(middleware)!: forbids middleware response body (#36835) 2022-05-19 22:02:20 +00:00
required-server-files Fix tracing edge-runtime dependencies (#39009) 2022-07-26 10:47:34 -05:00
standalone-mode-and-optimizecss Move outputStandalone config (#37994) 2022-06-24 14:58:35 -05:00
typescript-basic Tweak styled-jsx type declarations (#39474) 2022-08-10 15:26:54 -05:00
required-server-files-i18n.test.ts Ensure locale redirects are not applied in minimal mode (#39436) 2022-08-09 15:06:00 -05:00
required-server-files.test.ts Fix tracing edge-runtime dependencies (#39009) 2022-07-26 10:47:34 -05:00