@eggjs/bin 8.0.0-beta.26 → 8.0.0-beta.28

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.
@@ -32,7 +32,7 @@ declare abstract class BaseCommand<T extends typeof Command> extends Command {
32
32
  protected args: Args$1<T>;
33
33
  protected env: {
34
34
  [key: string]: string | undefined;
35
- TZ?: string;
35
+ TZ?: string | undefined;
36
36
  };
37
37
  protected pkg: Record<string, any>;
38
38
  protected isESM: boolean;
@@ -275,10 +275,8 @@ var BaseCommand = class extends Command {
275
275
  proc.once("exit", (code) => {
276
276
  debug("fork pid: %o exit code %o", proc.pid, code);
277
277
  children.delete(proc);
278
- if (code !== 0) {
279
- const err = new ForkError(modulePath + " " + forkArgs.join(" ") + " exit with code " + code, code);
280
- reject(err);
281
- } else resolve();
278
+ if (code !== 0) reject(new ForkError(modulePath + " " + forkArgs.join(" ") + " exit with code " + code, code));
279
+ else resolve();
282
280
  });
283
281
  });
284
282
  }
@@ -1,23 +1,23 @@
1
1
  import { ForkNodeOptions } from "../baseCommand.js";
2
2
  import { Test } from "./test.js";
3
- import * as _oclif_core_interfaces0 from "@oclif/core/interfaces";
3
+ import * as _oclif_core_interfaces11 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: _oclif_core_interfaces0.BooleanFlag<boolean>;
11
- exclude: _oclif_core_interfaces0.OptionFlag<string[] | undefined, _oclif_core_interfaces0.CustomOptions>;
12
- c8: _oclif_core_interfaces0.OptionFlag<string, _oclif_core_interfaces0.CustomOptions>;
13
- bail: _oclif_core_interfaces0.BooleanFlag<boolean>;
14
- timeout: _oclif_core_interfaces0.OptionFlag<number, _oclif_core_interfaces0.CustomOptions>;
15
- 'no-timeout': _oclif_core_interfaces0.BooleanFlag<boolean>;
16
- grep: _oclif_core_interfaces0.OptionFlag<string | undefined, _oclif_core_interfaces0.CustomOptions>;
17
- changed: _oclif_core_interfaces0.BooleanFlag<boolean>;
18
- parallel: _oclif_core_interfaces0.BooleanFlag<boolean>;
19
- jobs: _oclif_core_interfaces0.OptionFlag<number, _oclif_core_interfaces0.CustomOptions>;
20
- 'auto-agent': _oclif_core_interfaces0.BooleanFlag<boolean>;
10
+ prerequire: _oclif_core_interfaces11.BooleanFlag<boolean>;
11
+ exclude: _oclif_core_interfaces11.OptionFlag<string[] | undefined, _oclif_core_interfaces11.CustomOptions>;
12
+ c8: _oclif_core_interfaces11.OptionFlag<string, _oclif_core_interfaces11.CustomOptions>;
13
+ bail: _oclif_core_interfaces11.BooleanFlag<boolean>;
14
+ timeout: _oclif_core_interfaces11.OptionFlag<number, _oclif_core_interfaces11.CustomOptions>;
15
+ 'no-timeout': _oclif_core_interfaces11.BooleanFlag<boolean>;
16
+ grep: _oclif_core_interfaces11.OptionFlag<string | undefined, _oclif_core_interfaces11.CustomOptions>;
17
+ changed: _oclif_core_interfaces11.BooleanFlag<boolean>;
18
+ parallel: _oclif_core_interfaces11.BooleanFlag<boolean>;
19
+ jobs: _oclif_core_interfaces11.OptionFlag<number, _oclif_core_interfaces11.CustomOptions>;
20
+ 'auto-agent': _oclif_core_interfaces11.BooleanFlag<boolean>;
21
21
  };
22
22
  protected get defaultExcludes(): string[];
23
23
  protected forkNode(modulePath: string, forkArgs: string[], options?: ForkNodeOptions): Promise<void>;
@@ -1,15 +1,15 @@
1
1
  import { BaseCommand } from "../baseCommand.js";
2
- import * as _oclif_core_interfaces15 from "@oclif/core/interfaces";
2
+ import * as _oclif_core_interfaces27 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: _oclif_core_interfaces15.OptionFlag<number | undefined, _oclif_core_interfaces15.CustomOptions>;
10
- workers: _oclif_core_interfaces15.OptionFlag<number, _oclif_core_interfaces15.CustomOptions>;
11
- framework: _oclif_core_interfaces15.OptionFlag<string | undefined, _oclif_core_interfaces15.CustomOptions>;
12
- sticky: _oclif_core_interfaces15.BooleanFlag<boolean>;
9
+ port: _oclif_core_interfaces27.OptionFlag<number | undefined, _oclif_core_interfaces27.CustomOptions>;
10
+ workers: _oclif_core_interfaces27.OptionFlag<number, _oclif_core_interfaces27.CustomOptions>;
11
+ framework: _oclif_core_interfaces27.OptionFlag<string | undefined, _oclif_core_interfaces27.CustomOptions>;
12
+ sticky: _oclif_core_interfaces27.BooleanFlag<boolean>;
13
13
  };
14
14
  run(): Promise<void>;
15
15
  protected formatEggStartOptions(): Promise<{
@@ -19,7 +19,7 @@ declare class Dev<T extends typeof Dev> extends BaseCommand<T> {
19
19
  framework: string;
20
20
  typescript: boolean;
21
21
  tscompiler: string | undefined;
22
- sticky: boolean;
22
+ sticky: boolean | undefined;
23
23
  }>;
24
24
  }
25
25
  //#endregion
@@ -28,8 +28,7 @@ var Dev = class extends BaseCommand {
28
28
  debug("NODE_ENV: %o", this.env);
29
29
  this.env.NODE_ENV = this.env.NODE_ENV ?? "development";
30
30
  this.env.EGG_MASTER_CLOSE_TIMEOUT = "1000";
31
- const ext = this.isESM ? "mjs" : "cjs";
32
- const serverBin = getSourceFilename(`../scripts/start-cluster.${ext}`);
31
+ const serverBin = getSourceFilename(`../scripts/start-cluster.${this.isESM ? "mjs" : "cjs"}`);
33
32
  const eggStartOptions = await this.formatEggStartOptions();
34
33
  const args = [JSON.stringify(eggStartOptions)];
35
34
  const requires = await this.formatRequires();
@@ -1,22 +1,22 @@
1
1
  import { BaseCommand } from "../baseCommand.js";
2
- import * as _oclif_core_interfaces22 from "@oclif/core/interfaces";
2
+ import * as _oclif_core_interfaces0 from "@oclif/core/interfaces";
3
3
 
4
4
  //#region src/commands/test.d.ts
5
5
  declare class Test<T extends typeof Test> extends BaseCommand<T> {
6
6
  static args: {
7
- file: _oclif_core_interfaces22.Arg<string | undefined, Record<string, unknown>>;
7
+ file: _oclif_core_interfaces0.Arg<string | undefined, Record<string, unknown>>;
8
8
  };
9
9
  static description: string;
10
10
  static examples: string[];
11
11
  static flags: {
12
- bail: _oclif_core_interfaces22.BooleanFlag<boolean>;
13
- timeout: _oclif_core_interfaces22.OptionFlag<number, _oclif_core_interfaces22.CustomOptions>;
14
- 'no-timeout': _oclif_core_interfaces22.BooleanFlag<boolean>;
15
- grep: _oclif_core_interfaces22.OptionFlag<string | undefined, _oclif_core_interfaces22.CustomOptions>;
16
- changed: _oclif_core_interfaces22.BooleanFlag<boolean>;
17
- parallel: _oclif_core_interfaces22.BooleanFlag<boolean>;
18
- jobs: _oclif_core_interfaces22.OptionFlag<number, _oclif_core_interfaces22.CustomOptions>;
19
- 'auto-agent': _oclif_core_interfaces22.BooleanFlag<boolean>;
12
+ bail: _oclif_core_interfaces0.BooleanFlag<boolean>;
13
+ timeout: _oclif_core_interfaces0.OptionFlag<number, _oclif_core_interfaces0.CustomOptions>;
14
+ 'no-timeout': _oclif_core_interfaces0.BooleanFlag<boolean>;
15
+ grep: _oclif_core_interfaces0.OptionFlag<string | undefined, _oclif_core_interfaces0.CustomOptions>;
16
+ changed: _oclif_core_interfaces0.BooleanFlag<boolean>;
17
+ parallel: _oclif_core_interfaces0.BooleanFlag<boolean>;
18
+ jobs: _oclif_core_interfaces0.OptionFlag<number, _oclif_core_interfaces0.CustomOptions>;
19
+ 'auto-agent': _oclif_core_interfaces0.BooleanFlag<boolean>;
20
20
  };
21
21
  run(): Promise<void>;
22
22
  protected runMocha(mochaFile: string, mochaArgs: string[]): Promise<void>;
@@ -6,7 +6,7 @@ import { runScript } from 'runscript';
6
6
  import { readJSON, exists } from 'utility';
7
7
  import { importResolve } from '@eggjs/utils';
8
8
 
9
- const debug = debuglog('egg-bin/scripts/postinstall');
9
+ const debug = debuglog('egg/bin/scripts/postinstall');
10
10
 
11
11
  const __filename = fileURLToPath(import.meta.url);
12
12
  const __dirname = path.dirname(__filename);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/bin",
3
- "version": "8.0.0-beta.26",
3
+ "version": "8.0.0-beta.28",
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.26"
34
+ "@eggjs/utils": "5.0.0-beta.28"
35
35
  },
36
36
  "peerDependencies": {
37
- "@eggjs/mock": "7.0.0-beta.26"
37
+ "@eggjs/mock": "7.0.0-beta.28"
38
38
  },
39
39
  "peerDependenciesMeta": {
40
40
  "@eggjs/mock": {
@@ -42,7 +42,7 @@
42
42
  }
43
43
  },
44
44
  "devDependencies": {
45
- "@types/node": "^24.6.2",
45
+ "@types/node": "^24.7.2",
46
46
  "@types/mocha": "^10.0.10",
47
47
  "@swc-node/register": "^1.11.1",
48
48
  "@swc/core": "^1.13.5",
@@ -54,11 +54,11 @@
54
54
  "npminstall": "^7.12.0",
55
55
  "rimraf": "^6.0.1",
56
56
  "typescript": "^5.9.3",
57
- "tsdown": "^0.15.4",
58
- "@eggjs/supertest": "9.0.0-beta.26",
59
- "@eggjs/mock": "7.0.0-beta.26",
60
- "@eggjs/tsconfig": "3.1.0-beta.26",
61
- "egg": "4.1.0-beta.26"
57
+ "tsdown": "^0.15.6",
58
+ "@eggjs/mock": "7.0.0-beta.28",
59
+ "@eggjs/supertest": "9.0.0-beta.28",
60
+ "@eggjs/tsconfig": "3.1.0-beta.28",
61
+ "egg": "4.1.0-beta.28"
62
62
  },
63
63
  "type": "module",
64
64
  "files": [
@@ -6,7 +6,7 @@ import { runScript } from 'runscript';
6
6
  import { readJSON, exists } from 'utility';
7
7
  import { importResolve } from '@eggjs/utils';
8
8
 
9
- const debug = debuglog('egg-bin/scripts/postinstall');
9
+ const debug = debuglog('egg/bin/scripts/postinstall');
10
10
 
11
11
  const __filename = fileURLToPath(import.meta.url);
12
12
  const __dirname = path.dirname(__filename);