@atls/webpack-start-server-plugin 0.0.5 → 0.0.6

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.
@@ -0,0 +1 @@
1
+ export * from './start-server.plugin';
@@ -0,0 +1,2 @@
1
+ declare const monitorFn: () => void;
2
+ export default monitorFn;
@@ -0,0 +1,2 @@
1
+ declare const loader: () => string;
2
+ export default loader;
@@ -0,0 +1,29 @@
1
+ /// <reference types="node" />
2
+ import { ChildProcess } from 'child_process';
3
+ import { Writable } from 'stream';
4
+ export interface StartServerPluginOptions {
5
+ verbose: boolean;
6
+ entryName: string;
7
+ stdout?: Writable;
8
+ stderr?: Writable;
9
+ onWorkerStart?: (workeer: ChildProcess) => void;
10
+ onWorkerExit?: () => void;
11
+ }
12
+ export declare class StartServerPlugin {
13
+ options: StartServerPluginOptions;
14
+ entryFile: string | null;
15
+ worker: ChildProcess | null;
16
+ workerLoaded: boolean;
17
+ constructor(options?: Partial<StartServerPluginOptions>);
18
+ getEntryFile(compilation: any): string | null;
19
+ handleWorkerExit: (code: any, signal: any) => void;
20
+ handleWorkerError: (err: any) => void;
21
+ handleWorkerMessage: (message: any) => void;
22
+ runWorker(entryFile: string, callback?: any): void;
23
+ hmrWorker(compilation: any, callback: any): void;
24
+ afterEmit: (compilation: any, callback: any) => void;
25
+ getMonitor(): string;
26
+ apply: (compiler: any) => void;
27
+ info(body: any): void;
28
+ error(body: any): void;
29
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atls/webpack-start-server-plugin",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "BSD-3-Clause",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -12,10 +12,10 @@
12
12
  "postpack": "rm -rf dist"
13
13
  },
14
14
  "dependencies": {
15
- "webpack": "^5.70.0"
15
+ "webpack": "^5.73.0"
16
16
  },
17
17
  "devDependencies": {
18
- "@types/node": "^17.0.21"
18
+ "@types/node": "^17.0.38"
19
19
  },
20
20
  "publishConfig": {
21
21
  "access": "public",