@eggjs/development 5.0.0-beta.18 → 5.0.0-beta.20

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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isTimingFile } from "./utils.js";
1
+ import { isTimingFile } from "./utils-QMNrER5x.js";
2
2
  import path from "node:path";
3
3
  import fs from "node:fs/promises";
4
4
  import debounce from "debounce";
@@ -1,4 +1,4 @@
1
- import { isTimingFile } from "../../utils.js";
1
+ import { isTimingFile } from "../../utils-QMNrER5x.js";
2
2
  import path from "node:path";
3
3
  import fs from "node:fs/promises";
4
4
  import { readJSON } from "utility";
@@ -1,36 +1,2 @@
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;
31
- }
32
- declare const _default: {
33
- development: DevelopmentConfig;
34
- };
35
- //#endregion
1
+ import { DevelopmentConfig, _default } from "../config.default-Dd9dm297.js";
36
2
  export { DevelopmentConfig, _default as default };
@@ -0,0 +1,36 @@
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;
31
+ }
32
+ declare const _default: {
33
+ development: DevelopmentConfig;
34
+ };
35
+ //#endregion
36
+ export { DevelopmentConfig, _default };
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
- export { };
1
+ import "./config.default-Dd9dm297.js";
2
+ import "./types-CceUfA3j.js";
package/dist/index.js CHANGED
@@ -1 +1,3 @@
1
+ import "./types-CxAOQAAb.js";
2
+
1
3
  export { };
@@ -0,0 +1,18 @@
1
+ import { DevelopmentConfig } from "./config.default-Dd9dm297.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
+ }
@@ -0,0 +1 @@
1
+ export { };
package/dist/types.d.ts CHANGED
@@ -1,18 +1,2 @@
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
- }
1
+ import "./config.default-Dd9dm297.js";
2
+ import "./types-CceUfA3j.js";
package/dist/types.js CHANGED
@@ -1 +1,3 @@
1
+ import "./types-CxAOQAAb.js";
2
+
1
3
  export { };
@@ -0,0 +1,7 @@
1
+ //#region src/utils.ts
2
+ function isTimingFile(file) {
3
+ return /^(agent|application)_timing/.test(file);
4
+ }
5
+
6
+ //#endregion
7
+ export { isTimingFile };
package/dist/utils.js CHANGED
@@ -1,7 +1,3 @@
1
- //#region src/utils.ts
2
- function isTimingFile(file) {
3
- return /^(agent|application)_timing/.test(file);
4
- }
1
+ import { isTimingFile } from "./utils-QMNrER5x.js";
5
2
 
6
- //#endregion
7
3
  export { isTimingFile };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/development",
3
- "version": "5.0.0-beta.18",
3
+ "version": "5.0.0-beta.20",
4
4
  "description": "development tool for egg",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -43,14 +43,14 @@
43
43
  "utility": "^2.5.0"
44
44
  },
45
45
  "peerDependencies": {
46
- "egg": "4.1.0-beta.18"
46
+ "egg": "4.1.0-beta.20"
47
47
  },
48
48
  "devDependencies": {
49
49
  "tsdown": "^0.15.4",
50
- "typescript": "5.9.2",
51
- "@eggjs/mock": "7.0.0-beta.18",
52
- "@eggjs/tsconfig": "3.1.0-beta.18",
53
- "@eggjs/supertest": "9.0.0-beta.18"
50
+ "typescript": "^5.9.3",
51
+ "@eggjs/supertest": "9.0.0-beta.20",
52
+ "@eggjs/tsconfig": "3.1.0-beta.20",
53
+ "@eggjs/mock": "7.0.0-beta.20"
54
54
  },
55
55
  "engines": {
56
56
  "node": ">=22.18.0"