Skip to content

Commit a6f74c9

Browse files
committed
fixup! [dev-overlay] Move code into new top-level folder in src/
1 parent a5656eb commit a6f74c9

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

packages/next/.storybook/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function getAbsolutePath(value: string): any {
1010
return dirname(require.resolve(join(value, 'package.json')))
1111
}
1212
const config: StorybookConfig = {
13-
stories: ['../src/client/components/react-dev-overlay/ui/**/*.stories.tsx'],
13+
stories: ['../src/next-devtools/dev-overlay/**/*.stories.tsx'],
1414
addons: [
1515
getAbsolutePath('@storybook/addon-webpack5-compiler-swc'),
1616
getAbsolutePath('@storybook/addon-essentials'),

packages/next/src/next-devtools/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
## Project Structure
44

5-
- `dev-overlay/` - The UI that Next.js developers can interact with in development.
6-
- `server/` - Code that runs in the Next.js development server.
7-
- `shared/` - Anything that doesn't fit in
8-
- `userspace/` - Code that runs in the user's application.
5+
- `next-devtools/dev-overlay/` - The UI that Next.js developers can interact with in development.
6+
- `next-devtools/server/` - Code that runs in the Next.js development server.
7+
- `next-devtools/shared/` - Anything that doesn't fit in
8+
- `next-devtools/userspace/` - Code that runs in the user's application.
99

10-
Modules in `dev-overlay/` are isolated. Any stateful module will not share state with e.g. `userspace/`. Stateful modules `shared/` cannot be used to pass data from `dev-overlay/` to `userspace/` or vice versa.
10+
Modules in `dev-overlay/` are isolated from the rest of the source. Any stateful module will not share state with e.g. `userspace/`. Stateful modules in `shared/` cannot be used to pass data from `dev-overlay/` to `userspace/` or vice versa.
1111

1212
`userspace/` code can send messages to `dev-overlay/` via the `dispatcher` imported from `next/dist/compiled/next-devtools`.
1313

packages/next/src/server/web/globals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function ensureInstrumentationRegistered() {
5555
}
5656

5757
function getUnsupportedModuleErrorMessage(module: string) {
58-
// warning: if you change these messages, you must adjust how react-dev-overlay's middleware detects modules not found
58+
// warning: if you change these messages, you must adjust how dev-overlay's middleware detects modules not found
5959
return `The edge runtime does not support Node.js '${module}' module.
6060
Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime`
6161
}

packages/next/test-runner-jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ module.exports = {
1313
* to merge testRunnerConfig properties with your own
1414
* @see https://jestjs.io/docs/configuration
1515
*/
16-
rootDir: '<rootDir>/../src/client/components/react-dev-overlay/',
16+
rootDir: '<rootDir>/../src/next-devtools/dev-overlay/',
1717
testMatch: ['**/*.stories.tsx', '**/*.test.tsx'],
1818
}

packages/next/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// TODO: Enable types by telling Turbopack to ignore this alias.
2828
// tsconfig#paths are for type locations not source locations.
2929
// "next/dist/compiled/next-devtools": [
30-
// "./src/client/components/react-dev-overlay/entrypoint.d.ts"
30+
// "./src/next-devtools/entrypoint.ts"
3131
// ],
3232
"next/dist/shared/lib/image-loader": ["./src/shared/lib/image-loader.ts"]
3333
}

0 commit comments

Comments
 (0)