@eggjs/development 5.0.0-beta.35 → 5.0.0-beta.36
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/agent.d.ts +10 -6
- package/dist/agent.js +79 -81
- package/dist/app/middleware/egg_loader_trace.d.ts +6 -2
- package/dist/app/middleware/egg_loader_trace.js +33 -36
- package/dist/app.d.ts +9 -5
- package/dist/app.js +14 -14
- package/dist/config/config.default.d.ts +33 -31
- package/dist/config/config.default.js +13 -12
- package/dist/index.d.ts +25 -21
- package/dist/index.js +30 -27
- package/dist/types.d.ts +18 -16
- package/dist/types.js +1 -2
- package/dist/utils.d.ts +4 -1
- package/dist/utils.js +6 -3
- package/package.json +31 -36
package/dist/agent.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { Agent, ILifecycleBoot } from "egg";
|
|
2
|
+
|
|
3
|
+
//#region src/agent.d.ts
|
|
4
|
+
declare class AgentBoot implements ILifecycleBoot {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(agent: Agent);
|
|
7
|
+
didLoad(): Promise<void>;
|
|
8
|
+
serverDidReady(): Promise<void>;
|
|
7
9
|
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { AgentBoot as default };
|
package/dist/agent.js
CHANGED
|
@@ -1,82 +1,80 @@
|
|
|
1
|
-
import fs from 'node:fs/promises';
|
|
2
|
-
import path from 'node:path';
|
|
3
|
-
import debounce from 'debounce';
|
|
4
|
-
import multimatch from 'multimatch';
|
|
5
|
-
import { exists } from 'utility';
|
|
6
1
|
import { isTimingFile } from "./utils.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
|
|
2
|
+
import fs from "node:fs/promises";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import debounce from "debounce";
|
|
5
|
+
import multimatch from "multimatch";
|
|
6
|
+
import { exists } from "utility";
|
|
7
|
+
|
|
8
|
+
//#region src/agent.ts
|
|
9
|
+
var AgentBoot = class {
|
|
10
|
+
#agent;
|
|
11
|
+
constructor(agent) {
|
|
12
|
+
this.#agent = agent;
|
|
13
|
+
}
|
|
14
|
+
async didLoad() {
|
|
15
|
+
const rundir = this.#agent.config.rundir;
|
|
16
|
+
if (!await exists(rundir)) return;
|
|
17
|
+
const files = await fs.readdir(rundir);
|
|
18
|
+
for (const file of files) {
|
|
19
|
+
if (!isTimingFile(file)) continue;
|
|
20
|
+
await fs.rm(path.join(rundir, file), {
|
|
21
|
+
force: true,
|
|
22
|
+
recursive: true
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
async serverDidReady() {
|
|
27
|
+
const agent = this.#agent;
|
|
28
|
+
if (agent.options && Reflect.get(agent.options, "mode") === "single") return;
|
|
29
|
+
const logger = agent.logger;
|
|
30
|
+
const baseDir = agent.config.baseDir;
|
|
31
|
+
const config = agent.config.development;
|
|
32
|
+
let watchDirs = config.overrideDefault ? [] : [
|
|
33
|
+
"app",
|
|
34
|
+
"config",
|
|
35
|
+
"mocks",
|
|
36
|
+
"mocks_proxy",
|
|
37
|
+
"app.js"
|
|
38
|
+
];
|
|
39
|
+
watchDirs = watchDirs.concat(config.watchDirs).map((dir) => path.resolve(baseDir, dir));
|
|
40
|
+
let ignoreReloadFileDirs = config.overrideIgnore ? [] : [
|
|
41
|
+
"app/views",
|
|
42
|
+
"app/view",
|
|
43
|
+
"app/assets",
|
|
44
|
+
"app/public",
|
|
45
|
+
"app/web"
|
|
46
|
+
];
|
|
47
|
+
ignoreReloadFileDirs = ignoreReloadFileDirs.concat(config.ignoreDirs).map((dir) => path.resolve(baseDir, dir));
|
|
48
|
+
const reloadFile = debounce(function(info) {
|
|
49
|
+
logger.warn(`[agent:development] reload worker because ${info.path} ${info.event}`);
|
|
50
|
+
process.send({
|
|
51
|
+
to: "master",
|
|
52
|
+
action: "reload-worker"
|
|
53
|
+
});
|
|
54
|
+
}, 200);
|
|
55
|
+
/**
|
|
56
|
+
* reload app worker:
|
|
57
|
+
* [AgentWorker] - on file change
|
|
58
|
+
* |-> emit reload-worker
|
|
59
|
+
* [Master] - receive reload-worker event
|
|
60
|
+
* |-> TODO: Mark worker will die
|
|
61
|
+
* |-> Fork new worker
|
|
62
|
+
* |-> kill old worker
|
|
63
|
+
*
|
|
64
|
+
* @param {Object} info - changed fileInfo
|
|
65
|
+
*/
|
|
66
|
+
agent.watcher.watch(watchDirs, (info) => {
|
|
67
|
+
if (!config.reloadOnDebug) return;
|
|
68
|
+
if (isAssetsDir(info.path) || info.isDirectory) return;
|
|
69
|
+
if (config.reloadPattern && multimatch(info.path, config.reloadPattern).length === 0) return;
|
|
70
|
+
reloadFile(info);
|
|
71
|
+
});
|
|
72
|
+
function isAssetsDir(filepath) {
|
|
73
|
+
for (const ignorePath of ignoreReloadFileDirs) if (filepath.startsWith(ignorePath)) return true;
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
//#endregion
|
|
80
|
+
export { AgentBoot as default };
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { Application, MiddlewareFunc } from "egg";
|
|
2
|
+
|
|
3
|
+
//#region src/app/middleware/egg_loader_trace.d.ts
|
|
4
|
+
declare function createEggLoaderTraceMiddleware(_options: unknown, app: Application): MiddlewareFunc;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { createEggLoaderTraceMiddleware as default };
|
|
@@ -1,40 +1,37 @@
|
|
|
1
|
-
import fs from 'node:fs/promises';
|
|
2
|
-
import path from 'node:path';
|
|
3
|
-
import { readJSON } from 'utility';
|
|
4
1
|
import { isTimingFile } from "../../utils.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
import fs from "node:fs/promises";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { readJSON } from "utility";
|
|
5
|
+
|
|
6
|
+
//#region src/app/middleware/egg_loader_trace.ts
|
|
7
|
+
function createEggLoaderTraceMiddleware(_options, app) {
|
|
8
|
+
return async (ctx, next) => {
|
|
9
|
+
if (ctx.path !== "/__loader_trace__") return await next();
|
|
10
|
+
const templatePath = path.join(import.meta.dirname, "loader_trace.html");
|
|
11
|
+
const template = await fs.readFile(templatePath, "utf8");
|
|
12
|
+
const data = await loadTimingData(app);
|
|
13
|
+
ctx.body = template.replace("{{placeholder}}", JSON.stringify(data));
|
|
14
|
+
};
|
|
15
15
|
}
|
|
16
16
|
async function loadTimingData(app) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
item.title = `${item.type}(${item.index})`;
|
|
35
|
-
data.push(item);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return data;
|
|
17
|
+
const rundir = app.config.rundir;
|
|
18
|
+
const files = await fs.readdir(rundir);
|
|
19
|
+
const data = [];
|
|
20
|
+
for (const file of files) {
|
|
21
|
+
if (!isTimingFile(file)) continue;
|
|
22
|
+
const json = await readJSON(path.join(rundir, file));
|
|
23
|
+
const isAgent = file.startsWith("agent");
|
|
24
|
+
for (const item of json) {
|
|
25
|
+
if (isAgent) item.type = "agent";
|
|
26
|
+
else item.type = `app_${item.pid}`;
|
|
27
|
+
item.pid = String(item.pid);
|
|
28
|
+
item.range = [item.start, item.end];
|
|
29
|
+
item.title = `${item.type}(${item.index})`;
|
|
30
|
+
data.push(item);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return data;
|
|
39
34
|
}
|
|
40
|
-
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
export { createEggLoaderTraceMiddleware as default };
|
package/dist/app.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { Application, ILifecycleBoot } from "egg";
|
|
2
|
+
|
|
3
|
+
//#region src/app.d.ts
|
|
4
|
+
declare class AppBoot implements ILifecycleBoot {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(app: Application);
|
|
7
|
+
configWillLoad(): Promise<void>;
|
|
6
8
|
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { AppBoot as default };
|
package/dist/app.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
//#region src/app.ts
|
|
2
|
+
var AppBoot = class {
|
|
3
|
+
#app;
|
|
4
|
+
constructor(app) {
|
|
5
|
+
this.#app = app;
|
|
6
|
+
if (app.config.development.fastReady) process.nextTick(() => this.#app.ready(true));
|
|
7
|
+
}
|
|
8
|
+
async configWillLoad() {
|
|
9
|
+
this.#app.config.coreMiddleware.push("eggLoaderTrace");
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { AppBoot as default };
|
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
//#region src/config/config.default.d.ts
|
|
2
|
+
interface DevelopmentConfig {
|
|
3
|
+
/**
|
|
4
|
+
* dirs needed watch, when files under these change, application will reload, use relative path
|
|
5
|
+
*/
|
|
6
|
+
watchDirs: string[];
|
|
7
|
+
/**
|
|
8
|
+
* dirs don't need watch, including subdirectories, use relative path
|
|
9
|
+
*/
|
|
10
|
+
ignoreDirs: string[];
|
|
11
|
+
/**
|
|
12
|
+
* don't wait all plugins ready, default is false.
|
|
13
|
+
*/
|
|
14
|
+
fastReady: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* whether reload on debug, default is true.
|
|
17
|
+
*/
|
|
18
|
+
reloadOnDebug: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* whether override default watchDirs, default is false.
|
|
21
|
+
*/
|
|
22
|
+
overrideDefault: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* whether override default ignoreDirs, default is false.
|
|
25
|
+
*/
|
|
26
|
+
overrideIgnore: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* whether to reload, use https://github.com/sindresorhus/multimatch
|
|
29
|
+
*/
|
|
30
|
+
reloadPattern?: string[] | string;
|
|
30
31
|
}
|
|
31
32
|
declare const _default: {
|
|
32
|
-
|
|
33
|
+
development: DevelopmentConfig;
|
|
33
34
|
};
|
|
34
|
-
|
|
35
|
+
//#endregion
|
|
36
|
+
export { DevelopmentConfig, _default as default };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
//#
|
|
1
|
+
//#region src/config/config.default.ts
|
|
2
|
+
var config_default_default = { development: {
|
|
3
|
+
watchDirs: [],
|
|
4
|
+
ignoreDirs: [],
|
|
5
|
+
fastReady: false,
|
|
6
|
+
reloadOnDebug: true,
|
|
7
|
+
overrideDefault: false,
|
|
8
|
+
overrideIgnore: false,
|
|
9
|
+
reloadPattern: void 0
|
|
10
|
+
} };
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { config_default_default as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "./types.js";
|
|
2
|
+
import { EggPluginFactory } from "egg";
|
|
3
|
+
|
|
4
|
+
//#region src/index.d.ts
|
|
5
|
+
|
|
3
6
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
7
|
+
* Local development plugin, only enabled in `local` environment.
|
|
8
|
+
*
|
|
9
|
+
* @since 4.1.0
|
|
10
|
+
* Usage:
|
|
11
|
+
* ```ts
|
|
12
|
+
* // config/plugin.ts
|
|
13
|
+
* import developmentPlugin from '@eggjs/development';
|
|
14
|
+
*
|
|
15
|
+
* export default {
|
|
16
|
+
* ...developmentPlugin(),
|
|
17
|
+
* };
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @param options - Plugin options
|
|
21
|
+
* @param options.enable - `true` by default. on CI, it's `false` to avoid unexpected errors.
|
|
22
|
+
* @param options.env - Environment list to enable the plugin, default is `['local']`.
|
|
23
|
+
* @returns Plugin config
|
|
24
|
+
*/
|
|
22
25
|
declare const _default: EggPluginFactory;
|
|
23
|
-
|
|
26
|
+
//#endregion
|
|
27
|
+
export { _default as default };
|
package/dist/index.js
CHANGED
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
1
|
+
import { definePluginFactory } from "egg";
|
|
2
|
+
|
|
3
|
+
//#region src/index.ts
|
|
3
4
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
5
|
+
* Local development plugin, only enabled in `local` environment.
|
|
6
|
+
*
|
|
7
|
+
* @since 4.1.0
|
|
8
|
+
* Usage:
|
|
9
|
+
* ```ts
|
|
10
|
+
* // config/plugin.ts
|
|
11
|
+
* import developmentPlugin from '@eggjs/development';
|
|
12
|
+
*
|
|
13
|
+
* export default {
|
|
14
|
+
* ...developmentPlugin(),
|
|
15
|
+
* };
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @param options - Plugin options
|
|
19
|
+
* @param options.enable - `true` by default. on CI, it's `false` to avoid unexpected errors.
|
|
20
|
+
* @param options.env - Environment list to enable the plugin, default is `['local']`.
|
|
21
|
+
* @returns Plugin config
|
|
22
|
+
*/
|
|
23
|
+
var src_default = definePluginFactory({
|
|
24
|
+
name: "development",
|
|
25
|
+
enable: true,
|
|
26
|
+
path: import.meta.dirname,
|
|
27
|
+
env: ["local"],
|
|
28
|
+
dependencies: ["watcher"]
|
|
28
29
|
});
|
|
29
|
-
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { src_default as default };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { DevelopmentConfig } from "./config/config.default.js";
|
|
2
|
+
|
|
3
|
+
//#region src/types.d.ts
|
|
4
|
+
declare module "egg" {
|
|
5
|
+
interface EggAppConfig {
|
|
6
|
+
/**
|
|
7
|
+
* @member Config#development
|
|
8
|
+
* @property {Array} watchDirs - dirs needed watch, when files under these change, application will reload, use relative path
|
|
9
|
+
* @property {Array} ignoreDirs - dirs don't need watch, including subdirectories, use relative path
|
|
10
|
+
* @property {Boolean} fastReady - don't wait all plugins ready, default is false.
|
|
11
|
+
* @property {Boolean} reloadOnDebug - whether reload on debug, default is true.
|
|
12
|
+
* @property {Boolean} overrideDefault - whether override default watchDirs, default is false.
|
|
13
|
+
* @property {Boolean} overrideIgnore - whether override default ignoreDirs, default is false.
|
|
14
|
+
* @property {Array|String} reloadPattern - whether to reload, use https://github.com/sindresorhus/multimatch
|
|
15
|
+
*/
|
|
16
|
+
development: DevelopmentConfig;
|
|
17
|
+
}
|
|
18
|
+
}
|
package/dist/types.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
|
1
|
+
export { };
|
package/dist/utils.d.ts
CHANGED
package/dist/utils.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region src/utils.ts
|
|
2
|
+
function isTimingFile(file) {
|
|
3
|
+
return /^(agent|application)_timing/.test(file);
|
|
3
4
|
}
|
|
4
|
-
|
|
5
|
+
|
|
6
|
+
//#endregion
|
|
7
|
+
export { isTimingFile };
|
package/package.json
CHANGED
|
@@ -1,11 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/development",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.36",
|
|
4
4
|
"description": "development tool for egg",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"keywords": [
|
|
6
|
+
"egg",
|
|
7
|
+
"egg-plugin",
|
|
8
|
+
"eggPlugin",
|
|
9
|
+
"plugin"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://github.com/eggjs/egg/tree/next/plugins/development",
|
|
12
|
+
"bugs": "https://github.com/eggjs/egg/issues",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"author": "jtyjty99999",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/eggjs/egg.git",
|
|
18
|
+
"directory": "plugins/development"
|
|
7
19
|
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
8
23
|
"type": "module",
|
|
24
|
+
"main": "./dist/index.js",
|
|
25
|
+
"module": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
9
27
|
"exports": {
|
|
10
28
|
".": "./dist/index.js",
|
|
11
29
|
"./agent": "./dist/agent.js",
|
|
@@ -16,50 +34,27 @@
|
|
|
16
34
|
"./utils": "./dist/utils.js",
|
|
17
35
|
"./package.json": "./package.json"
|
|
18
36
|
},
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
"types": "./dist/index.d.ts",
|
|
23
|
-
"main": "./dist/index.js",
|
|
24
|
-
"module": "./dist/index.js",
|
|
25
|
-
"keywords": [
|
|
26
|
-
"egg",
|
|
27
|
-
"plugin",
|
|
28
|
-
"egg-plugin",
|
|
29
|
-
"eggPlugin"
|
|
30
|
-
],
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
31
40
|
"dependencies": {
|
|
32
41
|
"debounce": "^3.0.0",
|
|
33
42
|
"multimatch": "^7.0.0",
|
|
34
43
|
"utility": "^2.5.0"
|
|
35
44
|
},
|
|
36
|
-
"peerDependencies": {
|
|
37
|
-
"egg": "4.1.0-beta.35"
|
|
38
|
-
},
|
|
39
45
|
"devDependencies": {
|
|
40
|
-
"tsdown": "^0.17.0",
|
|
41
46
|
"typescript": "^5.9.3",
|
|
42
|
-
"@eggjs/mock": "7.0.0-beta.
|
|
43
|
-
"
|
|
44
|
-
"@eggjs/
|
|
45
|
-
|
|
47
|
+
"@eggjs/mock": "7.0.0-beta.36",
|
|
48
|
+
"egg": "4.1.0-beta.36",
|
|
49
|
+
"@eggjs/supertest": "9.0.0-beta.36"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"egg": "4.1.0-beta.36"
|
|
46
53
|
},
|
|
47
54
|
"engines": {
|
|
48
55
|
"node": ">=22.18.0"
|
|
49
56
|
},
|
|
50
|
-
"repository": {
|
|
51
|
-
"type": "git",
|
|
52
|
-
"url": "git+https://github.com/eggjs/egg.git",
|
|
53
|
-
"directory": "plugins/development"
|
|
54
|
-
},
|
|
55
|
-
"bugs": "https://github.com/eggjs/egg/issues",
|
|
56
|
-
"homepage": "https://github.com/eggjs/egg/tree/next/plugins/development",
|
|
57
|
-
"author": "jtyjty99999",
|
|
58
|
-
"license": "MIT",
|
|
59
57
|
"scripts": {
|
|
60
|
-
"
|
|
61
|
-
"typecheck": "tsc --noEmit",
|
|
62
|
-
"test": "vitest run",
|
|
63
|
-
"build": "tsdown && rimraf dist *.tsbuildinfo && tsc -p tsconfig.build.json"
|
|
58
|
+
"typecheck": "tsgo --noEmit"
|
|
64
59
|
}
|
|
65
60
|
}
|