@eggjs/bin 8.0.2-beta.1 → 8.0.2-beta.2
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
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import Test from "./test.js";
|
|
2
2
|
import { InlineConfig } from "vitest/node";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _oclif_core_interfaces8 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
|
-
exclude:
|
|
11
|
-
bail:
|
|
12
|
-
timeout:
|
|
13
|
-
'no-timeout':
|
|
14
|
-
grep:
|
|
15
|
-
changed:
|
|
16
|
-
watch:
|
|
10
|
+
exclude: _oclif_core_interfaces8.OptionFlag<string[] | undefined, _oclif_core_interfaces8.CustomOptions>;
|
|
11
|
+
bail: _oclif_core_interfaces8.BooleanFlag<boolean>;
|
|
12
|
+
timeout: _oclif_core_interfaces8.OptionFlag<number, _oclif_core_interfaces8.CustomOptions>;
|
|
13
|
+
'no-timeout': _oclif_core_interfaces8.BooleanFlag<boolean>;
|
|
14
|
+
grep: _oclif_core_interfaces8.OptionFlag<string | undefined, _oclif_core_interfaces8.CustomOptions>;
|
|
15
|
+
changed: _oclif_core_interfaces8.BooleanFlag<boolean>;
|
|
16
|
+
watch: _oclif_core_interfaces8.BooleanFlag<boolean>;
|
|
17
17
|
};
|
|
18
18
|
protected get defaultCoverageExcludes(): string[];
|
|
19
19
|
/**
|
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_interfaces18 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_interfaces18.OptionFlag<number | undefined, _oclif_core_interfaces18.CustomOptions>;
|
|
10
|
+
workers: _oclif_core_interfaces18.OptionFlag<number, _oclif_core_interfaces18.CustomOptions>;
|
|
11
|
+
framework: _oclif_core_interfaces18.OptionFlag<string | undefined, _oclif_core_interfaces18.CustomOptions>;
|
|
12
|
+
sticky: _oclif_core_interfaces18.BooleanFlag<boolean>;
|
|
13
13
|
};
|
|
14
14
|
run(): Promise<void>;
|
|
15
15
|
protected formatEggStartOptions(): Promise<{
|
package/dist/commands/test.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { BaseCommand } from "../baseCommand.js";
|
|
2
2
|
import { InlineConfig } from "vitest/node";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _oclif_core_interfaces0 from "@oclif/core/interfaces";
|
|
4
4
|
|
|
5
5
|
//#region src/commands/test.d.ts
|
|
6
6
|
declare class Test<T extends typeof Test> extends BaseCommand<T> {
|
|
7
7
|
static args: {
|
|
8
|
-
file:
|
|
8
|
+
file: _oclif_core_interfaces0.Arg<string | undefined, Record<string, unknown>>;
|
|
9
9
|
};
|
|
10
10
|
static description: string;
|
|
11
11
|
static examples: string[];
|
|
12
12
|
static flags: {
|
|
13
|
-
bail:
|
|
14
|
-
timeout:
|
|
15
|
-
'no-timeout':
|
|
16
|
-
grep:
|
|
17
|
-
changed:
|
|
18
|
-
watch:
|
|
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
|
+
watch: _oclif_core_interfaces0.BooleanFlag<boolean>;
|
|
19
19
|
};
|
|
20
20
|
run(): Promise<void>;
|
|
21
21
|
protected buildVitestConfig(files: string[]): Promise<InlineConfig>;
|
package/dist/commands/test.js
CHANGED
|
@@ -129,13 +129,14 @@ var Test = class extends BaseCommand {
|
|
|
129
129
|
debug("skip @eggjs/mock/setup_vitest: @eggjs/mock not installed");
|
|
130
130
|
}
|
|
131
131
|
let runner;
|
|
132
|
-
try {
|
|
133
|
-
runner = importResolve("@eggjs/tegg-vitest/runner", { paths: [
|
|
134
|
-
debug("auto use @eggjs/tegg-vitest/runner: %o", runner);
|
|
132
|
+
for (const resolveFrom of [flags.base, import.meta.dirname]) try {
|
|
133
|
+
runner = importResolve("@eggjs/tegg-vitest/runner", { paths: [resolveFrom] });
|
|
134
|
+
debug("auto use @eggjs/tegg-vitest/runner from %s: %o", resolveFrom, runner);
|
|
135
|
+
break;
|
|
135
136
|
} catch (err) {
|
|
136
137
|
if (!(err instanceof ImportResolveError)) throw err;
|
|
137
|
-
debug("skip @eggjs/tegg-vitest/runner: @eggjs/tegg-vitest not installed");
|
|
138
138
|
}
|
|
139
|
+
if (!runner) debug("skip @eggjs/tegg-vitest/runner: not resolvable");
|
|
139
140
|
return {
|
|
140
141
|
root: flags.base,
|
|
141
142
|
include: files,
|
|
@@ -151,6 +152,7 @@ var Test = class extends BaseCommand {
|
|
|
151
152
|
runner,
|
|
152
153
|
reporters: [process.env.TEST_REPORTER ?? "default"],
|
|
153
154
|
pool: "forks",
|
|
155
|
+
fileParallelism: process.env.EGG_FILE_PARALLELISM !== "false",
|
|
154
156
|
execArgv: [...this.globalExecArgv],
|
|
155
157
|
watch: flags.watch,
|
|
156
158
|
globals: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/bin",
|
|
3
|
-
"version": "8.0.2-beta.
|
|
3
|
+
"version": "8.0.2-beta.2",
|
|
4
4
|
"description": "egg developer tool",
|
|
5
5
|
"homepage": "https://github.com/eggjs/egg/tree/next/tools/egg-bin",
|
|
6
6
|
"bugs": {
|
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
"tsconfig-paths": "^4.2.0",
|
|
50
50
|
"utility": "^2.5.0",
|
|
51
51
|
"vitest": "^4.0.15",
|
|
52
|
-
"@eggjs/utils": "5.0.2-beta.
|
|
52
|
+
"@eggjs/utils": "5.0.2-beta.2",
|
|
53
|
+
"@eggjs/tegg-vitest": "4.0.2-beta.2"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@swc-node/register": "^1.11.1",
|
|
@@ -64,13 +65,13 @@
|
|
|
64
65
|
"rimraf": "^6.1.2",
|
|
65
66
|
"runscript": "^2.0.1",
|
|
66
67
|
"typescript": "^5.9.3",
|
|
67
|
-
"@eggjs/
|
|
68
|
-
"@eggjs/
|
|
69
|
-
"
|
|
70
|
-
"
|
|
68
|
+
"@eggjs/tsconfig": "3.1.2-beta.2",
|
|
69
|
+
"@eggjs/mock": "7.0.2-beta.2",
|
|
70
|
+
"egg": "4.1.2-beta.2",
|
|
71
|
+
"@eggjs/supertest": "9.0.2-beta.2"
|
|
71
72
|
},
|
|
72
73
|
"peerDependencies": {
|
|
73
|
-
"@eggjs/mock": "7.0.2-beta.
|
|
74
|
+
"@eggjs/mock": "7.0.2-beta.2"
|
|
74
75
|
},
|
|
75
76
|
"peerDependenciesMeta": {
|
|
76
77
|
"@eggjs/mock": {
|