@eggjs/bin 8.0.0-beta.31 → 8.0.0-beta.32
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/cov.d.ts +12 -12
- package/dist/commands/dev.d.ts +5 -5
- package/dist/commands/dev.js +7 -23
- package/package.json +7 -7
package/dist/commands/cov.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { ForkNodeOptions } from "../baseCommand.js";
|
|
2
2
|
import { Test } from "./test.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _oclif_core_interfaces6 from "@oclif/core/interfaces";
|
|
4
4
|
|
|
5
5
|
//#region src/commands/cov.d.ts
|
|
6
6
|
declare class Cov<T extends typeof Cov> extends Test<T> {
|
|
7
7
|
static description: string;
|
|
8
8
|
static examples: string[];
|
|
9
9
|
static flags: {
|
|
10
|
-
prerequire:
|
|
11
|
-
exclude:
|
|
12
|
-
c8:
|
|
13
|
-
bail:
|
|
14
|
-
timeout:
|
|
15
|
-
'no-timeout':
|
|
16
|
-
grep:
|
|
17
|
-
changed:
|
|
18
|
-
parallel:
|
|
19
|
-
jobs:
|
|
20
|
-
'auto-agent':
|
|
10
|
+
prerequire: _oclif_core_interfaces6.BooleanFlag<boolean>;
|
|
11
|
+
exclude: _oclif_core_interfaces6.OptionFlag<string[] | undefined, _oclif_core_interfaces6.CustomOptions>;
|
|
12
|
+
c8: _oclif_core_interfaces6.OptionFlag<string, _oclif_core_interfaces6.CustomOptions>;
|
|
13
|
+
bail: _oclif_core_interfaces6.BooleanFlag<boolean>;
|
|
14
|
+
timeout: _oclif_core_interfaces6.OptionFlag<number, _oclif_core_interfaces6.CustomOptions>;
|
|
15
|
+
'no-timeout': _oclif_core_interfaces6.BooleanFlag<boolean>;
|
|
16
|
+
grep: _oclif_core_interfaces6.OptionFlag<string | undefined, _oclif_core_interfaces6.CustomOptions>;
|
|
17
|
+
changed: _oclif_core_interfaces6.BooleanFlag<boolean>;
|
|
18
|
+
parallel: _oclif_core_interfaces6.BooleanFlag<boolean>;
|
|
19
|
+
jobs: _oclif_core_interfaces6.OptionFlag<number, _oclif_core_interfaces6.CustomOptions>;
|
|
20
|
+
'auto-agent': _oclif_core_interfaces6.BooleanFlag<boolean>;
|
|
21
21
|
};
|
|
22
22
|
protected get defaultExcludes(): string[];
|
|
23
23
|
protected forkNode(modulePath: string, forkArgs: string[], options?: ForkNodeOptions): Promise<void>;
|
package/dist/commands/dev.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { BaseCommand } from "../baseCommand.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _oclif_core_interfaces0 from "@oclif/core/interfaces";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/dev.d.ts
|
|
5
5
|
declare class Dev<T extends typeof Dev> extends BaseCommand<T> {
|
|
6
6
|
static description: string;
|
|
7
7
|
static examples: string[];
|
|
8
8
|
static flags: {
|
|
9
|
-
port:
|
|
10
|
-
workers:
|
|
11
|
-
framework:
|
|
12
|
-
sticky:
|
|
9
|
+
port: _oclif_core_interfaces0.OptionFlag<number | undefined, _oclif_core_interfaces0.CustomOptions>;
|
|
10
|
+
workers: _oclif_core_interfaces0.OptionFlag<number, _oclif_core_interfaces0.CustomOptions>;
|
|
11
|
+
framework: _oclif_core_interfaces0.OptionFlag<string | undefined, _oclif_core_interfaces0.CustomOptions>;
|
|
12
|
+
sticky: _oclif_core_interfaces0.BooleanFlag<boolean>;
|
|
13
13
|
};
|
|
14
14
|
run(): Promise<void>;
|
|
15
15
|
protected formatEggStartOptions(): Promise<{
|
package/dist/commands/dev.js
CHANGED
|
@@ -2,7 +2,7 @@ import { getSourceFilename } from "../utils.js";
|
|
|
2
2
|
import { BaseCommand } from "../baseCommand.js";
|
|
3
3
|
import { debuglog } from "node:util";
|
|
4
4
|
import { Flags } from "@oclif/core";
|
|
5
|
-
import {
|
|
5
|
+
import { getFrameworkPath } from "@eggjs/utils";
|
|
6
6
|
import { detect } from "detect-port";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/dev.ts
|
|
@@ -25,8 +25,8 @@ var Dev = class extends BaseCommand {
|
|
|
25
25
|
sticky: Flags.boolean({ description: "start a sticky cluster server" })
|
|
26
26
|
};
|
|
27
27
|
async run() {
|
|
28
|
-
debug("NODE_ENV: %o", this.env);
|
|
29
28
|
this.env.NODE_ENV = this.env.NODE_ENV ?? "development";
|
|
29
|
+
debug("NODE_ENV: %o", this.env.NODE_ENV);
|
|
30
30
|
this.env.EGG_MASTER_CLOSE_TIMEOUT = "1000";
|
|
31
31
|
const serverBin = getSourceFilename(`../scripts/start-cluster.${this.isESM ? "mjs" : "cjs"}`);
|
|
32
32
|
const eggStartOptions = await this.formatEggStartOptions();
|
|
@@ -47,27 +47,11 @@ var Dev = class extends BaseCommand {
|
|
|
47
47
|
baseDir: flags.base
|
|
48
48
|
});
|
|
49
49
|
if (!flags.port) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
env: "local"
|
|
56
|
-
}))?.cluster?.listen?.port;
|
|
57
|
-
} catch (err) {
|
|
58
|
-
/** skip when failing to read the configuration */
|
|
59
|
-
debug("getConfig error: %s, framework: %o, baseDir: %o, env: local", err, flags.framework, flags.base);
|
|
60
|
-
}
|
|
61
|
-
if (configuredPort) {
|
|
62
|
-
flags.port = configuredPort;
|
|
63
|
-
debug(`use port ${flags.port} from configuration file`);
|
|
64
|
-
} else {
|
|
65
|
-
const defaultPort = parseInt(process.env.EGG_BIN_DEFAULT_PORT ?? "7001");
|
|
66
|
-
debug("detect available port");
|
|
67
|
-
flags.port = await detect(defaultPort);
|
|
68
|
-
if (flags.port !== defaultPort) console.warn("[@eggjs/bin] server port %o is unavailable, now using port %o", defaultPort, flags.port);
|
|
69
|
-
debug(`use available port ${flags.port}`);
|
|
70
|
-
}
|
|
50
|
+
const defaultPort = parseInt(process.env.EGG_BIN_DEFAULT_PORT ?? "7001");
|
|
51
|
+
debug("detect available port");
|
|
52
|
+
flags.port = await detect(defaultPort);
|
|
53
|
+
if (flags.port !== defaultPort) console.warn("[@eggjs/bin] server port %o is unavailable, now using port %o", defaultPort, flags.port);
|
|
54
|
+
debug(`use available port ${flags.port}`);
|
|
71
55
|
}
|
|
72
56
|
return {
|
|
73
57
|
baseDir: flags.base,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/bin",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.32",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"ts-node": "^10.9.2",
|
|
32
32
|
"tsconfig-paths": "^4.2.0",
|
|
33
33
|
"utility": "^2.5.0",
|
|
34
|
-
"@eggjs/utils": "5.0.0-beta.
|
|
34
|
+
"@eggjs/utils": "5.0.0-beta.32"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@eggjs/mock": "7.0.0-beta.
|
|
37
|
+
"@eggjs/mock": "7.0.0-beta.32"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|
|
40
40
|
"@eggjs/mock": {
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"rimraf": "^6.0.1",
|
|
56
56
|
"typescript": "^5.9.3",
|
|
57
57
|
"tsdown": "0.15.10",
|
|
58
|
-
"@eggjs/supertest": "9.0.0-beta.
|
|
59
|
-
"@eggjs/mock": "7.0.0-beta.
|
|
60
|
-
"@eggjs/tsconfig": "3.1.0-beta.
|
|
61
|
-
"egg": "4.1.0-beta.
|
|
58
|
+
"@eggjs/supertest": "9.0.0-beta.32",
|
|
59
|
+
"@eggjs/mock": "7.0.0-beta.32",
|
|
60
|
+
"@eggjs/tsconfig": "3.1.0-beta.32",
|
|
61
|
+
"egg": "4.1.0-beta.32"
|
|
62
62
|
},
|
|
63
63
|
"type": "module",
|
|
64
64
|
"files": [
|