@eggjs/scripts 5.0.0-beta.33 → 5.0.0-beta.34
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/commands/start.d.ts +15 -15
- package/dist/commands/start.js +1 -0
- package/dist/commands/stop.d.ts +4 -4
- package/dist/commands/stop.js +2 -2
- package/package.json +5 -5
package/dist/commands/start.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseCommand } from "../baseCommand.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _oclif_core_interfaces4 from "@oclif/core/interfaces";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/start.d.ts
|
|
5
5
|
interface FrameworkOptions {
|
|
@@ -11,22 +11,22 @@ declare class Start<T extends typeof Start> extends BaseCommand<T> {
|
|
|
11
11
|
static description: string;
|
|
12
12
|
static examples: string[];
|
|
13
13
|
static args: {
|
|
14
|
-
baseDir:
|
|
14
|
+
baseDir: _oclif_core_interfaces4.Arg<string | undefined, Record<string, unknown>>;
|
|
15
15
|
};
|
|
16
16
|
static flags: {
|
|
17
|
-
title:
|
|
18
|
-
framework:
|
|
19
|
-
port:
|
|
20
|
-
workers:
|
|
21
|
-
env:
|
|
22
|
-
daemon:
|
|
23
|
-
stdout:
|
|
24
|
-
stderr:
|
|
25
|
-
timeout:
|
|
26
|
-
'ignore-stderr':
|
|
27
|
-
node:
|
|
28
|
-
require:
|
|
29
|
-
sourcemap:
|
|
17
|
+
title: _oclif_core_interfaces4.OptionFlag<string | undefined, _oclif_core_interfaces4.CustomOptions>;
|
|
18
|
+
framework: _oclif_core_interfaces4.OptionFlag<string | undefined, _oclif_core_interfaces4.CustomOptions>;
|
|
19
|
+
port: _oclif_core_interfaces4.OptionFlag<number | undefined, _oclif_core_interfaces4.CustomOptions>;
|
|
20
|
+
workers: _oclif_core_interfaces4.OptionFlag<number | undefined, _oclif_core_interfaces4.CustomOptions>;
|
|
21
|
+
env: _oclif_core_interfaces4.OptionFlag<string, _oclif_core_interfaces4.CustomOptions>;
|
|
22
|
+
daemon: _oclif_core_interfaces4.BooleanFlag<boolean>;
|
|
23
|
+
stdout: _oclif_core_interfaces4.OptionFlag<string | undefined, _oclif_core_interfaces4.CustomOptions>;
|
|
24
|
+
stderr: _oclif_core_interfaces4.OptionFlag<string | undefined, _oclif_core_interfaces4.CustomOptions>;
|
|
25
|
+
timeout: _oclif_core_interfaces4.OptionFlag<number, _oclif_core_interfaces4.CustomOptions>;
|
|
26
|
+
'ignore-stderr': _oclif_core_interfaces4.BooleanFlag<boolean>;
|
|
27
|
+
node: _oclif_core_interfaces4.OptionFlag<string, _oclif_core_interfaces4.CustomOptions>;
|
|
28
|
+
require: _oclif_core_interfaces4.OptionFlag<string[] | undefined, _oclif_core_interfaces4.CustomOptions>;
|
|
29
|
+
sourcemap: _oclif_core_interfaces4.BooleanFlag<boolean>;
|
|
30
30
|
};
|
|
31
31
|
isReady: boolean;
|
|
32
32
|
protected getFrameworkPath(options: FrameworkOptions): Promise<string>;
|
package/dist/commands/start.js
CHANGED
|
@@ -94,6 +94,7 @@ var Start = class extends BaseCommand {
|
|
|
94
94
|
if (flags.workers === void 0 && process.env.EGG_WORKERS) flags.workers = Number(process.env.EGG_WORKERS);
|
|
95
95
|
this.env.HOME = HOME;
|
|
96
96
|
this.env.NODE_ENV = "production";
|
|
97
|
+
this.env.EGG_TS_ENABLE = "false";
|
|
97
98
|
this.env.PATH = this.env.Path = [
|
|
98
99
|
path.join(baseDir, "node_modules/.bin"),
|
|
99
100
|
path.join(baseDir, ".node/bin"),
|
package/dist/commands/stop.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { BaseCommand } from "../baseCommand.js";
|
|
2
2
|
import { NodeProcess } from "../helper.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _oclif_core_interfaces0 from "@oclif/core/interfaces";
|
|
4
4
|
|
|
5
5
|
//#region src/commands/stop.d.ts
|
|
6
6
|
declare class Stop<T extends typeof Stop> extends BaseCommand<T> {
|
|
7
7
|
static description: string;
|
|
8
8
|
static examples: string[];
|
|
9
9
|
static args: {
|
|
10
|
-
baseDir:
|
|
10
|
+
baseDir: _oclif_core_interfaces0.Arg<string | undefined, Record<string, unknown>>;
|
|
11
11
|
};
|
|
12
12
|
static flags: {
|
|
13
|
-
title:
|
|
14
|
-
timeout:
|
|
13
|
+
title: _oclif_core_interfaces0.OptionFlag<string | undefined, _oclif_core_interfaces0.CustomOptions>;
|
|
14
|
+
timeout: _oclif_core_interfaces0.OptionFlag<number, _oclif_core_interfaces0.CustomOptions>;
|
|
15
15
|
};
|
|
16
16
|
run(): Promise<void>;
|
|
17
17
|
protected findNodeProcesses(filter: (item: NodeProcess) => boolean): Promise<NodeProcess[]>;
|
package/dist/commands/stop.js
CHANGED
|
@@ -8,8 +8,8 @@ import { scheduler } from "node:timers/promises";
|
|
|
8
8
|
const debug = debuglog("egg/scripts/commands/stop");
|
|
9
9
|
const osRelated = {
|
|
10
10
|
titleTemplate: isWindows ? "\\\"title\\\":\\\"%s\\\"" : "\"title\":\"%s\"",
|
|
11
|
-
appWorkerPath: /@eggjs[/\\]cluster[/\\]dist[/\\]
|
|
12
|
-
agentWorkerPath: /@eggjs[/\\]cluster[/\\]dist[/\\]
|
|
11
|
+
appWorkerPath: /@eggjs[/\\]cluster[/\\]dist[/\\]app_worker\.js/i,
|
|
12
|
+
agentWorkerPath: /@eggjs[/\\]cluster[/\\]dist[/\\]agent_worker\.js/i
|
|
13
13
|
};
|
|
14
14
|
var Stop = class extends BaseCommand {
|
|
15
15
|
static description = "Stop server";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/scripts",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.34",
|
|
4
4
|
"description": "deploy tool for egg project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"runscript": "^2.0.1",
|
|
54
54
|
"source-map-support": "^0.5.21",
|
|
55
55
|
"utility": "^2.5.0",
|
|
56
|
-
"@eggjs/utils": "5.0.0-beta.
|
|
56
|
+
"@eggjs/utils": "5.0.0-beta.34"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/node": "^24.9.1",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"tsdown": "0.15.11",
|
|
65
65
|
"typescript": "^5.9.3",
|
|
66
66
|
"urllib": "^4.8.2",
|
|
67
|
-
"vitest": "4.0.
|
|
68
|
-
"
|
|
69
|
-
"
|
|
67
|
+
"vitest": "4.0.5",
|
|
68
|
+
"egg": "4.1.0-beta.34",
|
|
69
|
+
"@eggjs/tsconfig": "3.1.0-beta.34"
|
|
70
70
|
},
|
|
71
71
|
"main": "./dist/index.js",
|
|
72
72
|
"module": "./dist/index.js",
|