@eggjs/bin 8.0.0-beta.33 → 8.0.0-beta.35

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.
@@ -1,11 +1,11 @@
1
1
  import { getSourceDirname, hasTsConfig, readPackageJSON } from "./utils.js";
2
- import { debuglog } from "node:util";
3
2
  import path from "node:path";
4
- import os from "node:os";
5
- import { Command, Flags, Interfaces } from "@oclif/core";
6
3
  import { importResolve } from "@eggjs/utils";
7
- import { pathToFileURL } from "node:url";
4
+ import { Command, Flags, Interfaces } from "@oclif/core";
8
5
  import { fork } from "node:child_process";
6
+ import os from "node:os";
7
+ import { pathToFileURL } from "node:url";
8
+ import { debuglog } from "node:util";
9
9
 
10
10
  //#region src/baseCommand.ts
11
11
  const debug = debuglog("egg/bin/baseCommand");
@@ -1,23 +1,23 @@
1
1
  import { ForkNodeOptions } from "../baseCommand.js";
2
2
  import { Test } from "./test.js";
3
- import * as _oclif_core_interfaces11 from "@oclif/core/interfaces";
3
+ import * as _oclif_core_interfaces0 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_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>;
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>;
21
21
  };
22
22
  protected get defaultExcludes(): string[];
23
23
  protected forkNode(modulePath: string, forkArgs: string[], options?: ForkNodeOptions): Promise<void>;
@@ -1,9 +1,9 @@
1
1
  import "../baseCommand.js";
2
2
  import Test from "./test.js";
3
- import path from "node:path";
4
3
  import fs from "node:fs/promises";
5
- import { Flags } from "@oclif/core";
4
+ import path from "node:path";
6
5
  import { importResolve } from "@eggjs/utils";
6
+ import { Flags } from "@oclif/core";
7
7
 
8
8
  //#region src/commands/cov.ts
9
9
  var Cov = class extends Test {
@@ -1,15 +1,15 @@
1
1
  import { BaseCommand } from "../baseCommand.js";
2
- import * as _oclif_core_interfaces27 from "@oclif/core/interfaces";
2
+ import * as _oclif_core_interfaces15 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_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>;
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>;
13
13
  };
14
14
  run(): Promise<void>;
15
15
  protected formatEggStartOptions(): Promise<{
@@ -1,8 +1,8 @@
1
1
  import { getSourceFilename } from "../utils.js";
2
2
  import { BaseCommand } from "../baseCommand.js";
3
- import { debuglog } from "node:util";
4
- import { Flags } from "@oclif/core";
5
3
  import { getFrameworkPath } from "@eggjs/utils";
4
+ import { Flags } from "@oclif/core";
5
+ import { debuglog } from "node:util";
6
6
  import { detect } from "detect-port";
7
7
 
8
8
  //#region src/commands/dev.ts
@@ -1,22 +1,22 @@
1
1
  import { BaseCommand } from "../baseCommand.js";
2
- import * as _oclif_core_interfaces0 from "@oclif/core/interfaces";
2
+ import * as _oclif_core_interfaces22 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_interfaces0.Arg<string | undefined, Record<string, unknown>>;
7
+ file: _oclif_core_interfaces22.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_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>;
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>;
20
20
  };
21
21
  run(): Promise<void>;
22
22
  protected runMocha(mochaFile: string, mochaArgs: string[]): Promise<void>;
@@ -1,13 +1,13 @@
1
1
  import { BaseCommand } from "../baseCommand.js";
2
- import { debuglog } from "node:util";
3
- import path from "node:path";
4
- import os from "node:os";
5
2
  import fs from "node:fs/promises";
3
+ import path from "node:path";
4
+ import { EggType, detectType, importResolve } from "@eggjs/utils";
6
5
  import { Args, Flags } from "@oclif/core";
6
+ import os from "node:os";
7
+ import { debuglog } from "node:util";
8
+ import ciParallelVars from "ci-parallel-vars";
7
9
  import globby from "globby";
8
- import { EggType, detectType, importResolve } from "@eggjs/utils";
9
10
  import { getChangedFilesForRoots } from "jest-changed-files";
10
- import ciParallelVars from "ci-parallel-vars";
11
11
 
12
12
  //#region src/commands/test.ts
13
13
  const debug = debuglog("egg/bin/commands/test");
package/dist/utils.js CHANGED
@@ -1,5 +1,5 @@
1
- import path from "node:path";
2
1
  import fs from "node:fs/promises";
2
+ import path from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
4
 
5
5
  //#region src/utils.ts
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@eggjs/bin",
3
- "version": "8.0.0-beta.33",
3
+ "version": "8.0.0-beta.35",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "description": "egg developer tool",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "git://github.com/eggjs/egg.git",
10
+ "url": "git+https://github.com/eggjs/egg.git",
11
11
  "directory": "tools/egg-bin"
12
12
  },
13
13
  "bugs": {
@@ -15,6 +15,7 @@
15
15
  },
16
16
  "homepage": "https://github.com/eggjs/egg/tree/next/tools/egg-bin",
17
17
  "author": "fengmk2 <fengmk2@gmail.com> (https://github.com/fengmk2)",
18
+ "license": "MIT",
18
19
  "engines": {
19
20
  "node": ">=22.18.0"
20
21
  },
@@ -25,14 +26,14 @@
25
26
  "detect-port": "^2.1.0",
26
27
  "globby": "^11.0.2",
27
28
  "jest-changed-files": "^30.0.0",
28
- "mocha": "^11.7.4",
29
+ "mocha": "^11.7.5",
29
30
  "ts-node": "^10.9.2",
30
31
  "tsconfig-paths": "^4.2.0",
31
32
  "utility": "^2.5.0",
32
- "@eggjs/utils": "5.0.0-beta.33"
33
+ "@eggjs/utils": "5.0.0-beta.35"
33
34
  },
34
35
  "peerDependencies": {
35
- "@eggjs/mock": "7.0.0-beta.33"
36
+ "@eggjs/mock": "7.0.0-beta.35"
36
37
  },
37
38
  "peerDependenciesMeta": {
38
39
  "@eggjs/mock": {
@@ -41,23 +42,23 @@
41
42
  },
42
43
  "devDependencies": {
43
44
  "@swc-node/register": "^1.11.1",
44
- "@swc/core": "1.13.5",
45
+ "@swc/core": "^1.15.1",
45
46
  "@types/mocha": "^10.0.10",
46
- "@types/node": "^24.9.1",
47
+ "@types/node": "^24.10.1",
47
48
  "assert-file": "1",
48
49
  "coffee": "5",
49
50
  "cpy": "^12.0.0",
50
- "esbuild": "^0.25.0",
51
+ "esbuild": "^0.27.0",
51
52
  "esbuild-register": "^3.6.0",
52
53
  "npminstall": "^7.12.0",
53
- "rimraf": "^6.0.1",
54
+ "rimraf": "^6.1.2",
54
55
  "runscript": "^2.0.1",
55
- "tsdown": "0.15.11",
56
+ "tsdown": "^0.17.0",
56
57
  "typescript": "^5.9.3",
57
- "@eggjs/mock": "7.0.0-beta.33",
58
- "@eggjs/supertest": "9.0.0-beta.33",
59
- "@eggjs/tsconfig": "3.1.0-beta.33",
60
- "egg": "4.1.0-beta.33"
58
+ "@eggjs/supertest": "9.0.0-beta.35",
59
+ "@eggjs/tsconfig": "3.1.0-beta.35",
60
+ "@eggjs/mock": "7.0.0-beta.35",
61
+ "egg": "4.1.0-beta.35"
61
62
  },
62
63
  "type": "module",
63
64
  "files": [