@modern-js/plugin-devtools 0.0.0-next-20250430162008 → 0.0.0-next-20250508124750

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -159,9 +159,7 @@ const devtoolsPlugin = (inlineOptions = {}) => {
159
159
  await api.builderHooks.callHook("onAfterBuild", params);
160
160
  });
161
161
  builderApi.onExit(() => {
162
- api.builderHooks.callHookWith((hooks) => hooks.forEach((hook) => hook()), "onExit", {
163
- exitCode: 0
164
- });
162
+ api.builderHooks.callHookWith((hooks) => hooks.forEach((hook) => hook()), "onExit");
165
163
  });
166
164
  }
167
165
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import http from 'http';
2
3
  import type { Plugin } from '../types';
3
4
  declare global {
package/dist/runtime.d.ts CHANGED
@@ -1 +1,2 @@
1
+ /// <reference lib="dom" />
1
2
  export {};
@@ -1,11 +1,12 @@
1
+ /// <reference types="node" />
1
2
  import type { AppTools, AppToolsHooks, CliPlugin } from '@modern-js/app-tools';
2
3
  import type { BaseHooks } from '@modern-js/core';
3
4
  import type { DevtoolsContext, ServerManifest } from '@modern-js/devtools-kit/node';
4
- import type { ServerPluginLegacy, ToThreads } from '@modern-js/server-core';
5
+ import type { ServerPlugin, ToThreads } from '@modern-js/server-core';
5
6
  import type { RsbuildPluginAPI } from '@rsbuild/core';
6
7
  import type { Hookable } from 'hookable';
7
8
  export type CliPluginAPI = Parameters<NonNullable<CliPlugin<AppTools>['setup']>>[0];
8
- export type ServerPluginAPI = Parameters<NonNullable<ServerPluginLegacy['setup']>>[0];
9
+ export type ServerPluginAPI = Parameters<NonNullable<ServerPlugin['setup']>>[0];
9
10
  export type BufferLike = string | Buffer | DataView | number | ArrayBufferView | Uint8Array | ArrayBuffer | SharedArrayBuffer | ReadonlyArray<any> | ReadonlyArray<number> | {
10
11
  valueOf: () => ArrayBuffer;
11
12
  } | {
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  export declare const getRequire: () => NodeRequire;
2
3
  export declare const resolveModule: (id: string[] | string) => string | null;
3
4
  export declare const requireModule: (id: string[] | string) => any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { IncomingMessage } from 'http';
2
3
  import WebSocket from 'ws';
3
4
  import type { BufferLike } from '../types';
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-next-20250430162008",
18
+ "version": "0.0.0-next-20250508124750",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/index.d.ts",
21
21
  "main": "./dist/index.js",
@@ -56,29 +56,29 @@
56
56
  "ufo": "^1.3.0",
57
57
  "valtio": "^1.11.1",
58
58
  "ws": "^8.13.0",
59
- "@modern-js/devtools-client": "0.0.0-next-20250430162008",
60
- "@modern-js/devtools-kit": "0.0.0-next-20250430162008",
61
- "@modern-js/utils": "0.0.0-next-20250430162008"
59
+ "@modern-js/devtools-client": "0.0.0-next-20250508124750",
60
+ "@modern-js/devtools-kit": "0.0.0-next-20250508124750",
61
+ "@modern-js/utils": "0.0.0-next-20250508124750"
62
62
  },
63
63
  "devDependencies": {
64
- "@rsbuild/core": "1.3.14",
64
+ "@rsbuild/core": "1.2.19",
65
65
  "@swc/helpers": "0.5.13",
66
66
  "@types/node": "^14",
67
67
  "@types/react-devtools-inline": "^4.24.8",
68
68
  "@types/ws": "^8.5.5",
69
69
  "type-fest": "^4.1.0",
70
70
  "typescript": "^5",
71
- "@modern-js/app-tools": "0.0.0-next-20250430162008",
72
- "@modern-js/core": "0.0.0-next-20250430162008",
73
- "@modern-js/module-tools": "0.0.0-next-20250430162008",
74
- "@modern-js/runtime": "0.0.0-next-20250430162008",
75
- "@modern-js/server-core": "0.0.0-next-20250430162008",
76
- "@modern-js/types": "0.0.0-next-20250430162008",
77
- "@modern-js/uni-builder": "0.0.0-next-20250430162008",
78
- "@scripts/build": "0.0.0-next-20250430162008"
71
+ "@modern-js/app-tools": "0.0.0-next-20250508124750",
72
+ "@modern-js/core": "0.0.0-next-20250508124750",
73
+ "@modern-js/module-tools": "0.0.0-next-20250508124750",
74
+ "@modern-js/runtime": "0.0.0-next-20250508124750",
75
+ "@modern-js/server-core": "0.0.0-next-20250508124750",
76
+ "@modern-js/types": "0.0.0-next-20250508124750",
77
+ "@scripts/build": "0.0.0-next-20250508124750",
78
+ "@modern-js/uni-builder": "0.0.0-next-20250508124750"
79
79
  },
80
80
  "peerDependencies": {
81
- "@modern-js/runtime": "0.0.0-next-20250430162008"
81
+ "@modern-js/runtime": "0.0.0-next-20250508124750"
82
82
  },
83
83
  "peerDependenciesMeta": {
84
84
  "@modern-js/runtime": {