@eggjs/development 5.0.0-beta.30 → 5.0.0-beta.31

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/index.d.ts CHANGED
@@ -1 +1,23 @@
1
+ import { type EggPluginFactory } from 'egg';
1
2
  import './types.ts';
3
+ /**
4
+ * Local development plugin, only enabled in `local` environment.
5
+ *
6
+ * @since 4.1.0
7
+ * Usage:
8
+ * ```ts
9
+ * // config/plugin.ts
10
+ * import developmentPlugin from '@eggjs/development';
11
+ *
12
+ * export default {
13
+ * ...developmentPlugin(),
14
+ * };
15
+ * ```
16
+ *
17
+ * @param options - Plugin options
18
+ * @param options.enable - `true` by default. on CI, it's `false` to avoid unexpected errors.
19
+ * @param options.env - Environment list to enable the plugin, default is `['local']`.
20
+ * @returns Plugin config
21
+ */
22
+ declare const _default: EggPluginFactory;
23
+ export default _default;
package/dist/index.js CHANGED
@@ -1,2 +1,29 @@
1
+ import { definePluginFactory } from 'egg';
1
2
  import "./types.js";
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxZQUFZLENBQUMifQ==
3
+ /**
4
+ * Local development plugin, only enabled in `local` environment.
5
+ *
6
+ * @since 4.1.0
7
+ * Usage:
8
+ * ```ts
9
+ * // config/plugin.ts
10
+ * import developmentPlugin from '@eggjs/development';
11
+ *
12
+ * export default {
13
+ * ...developmentPlugin(),
14
+ * };
15
+ * ```
16
+ *
17
+ * @param options - Plugin options
18
+ * @param options.enable - `true` by default. on CI, it's `false` to avoid unexpected errors.
19
+ * @param options.env - Environment list to enable the plugin, default is `['local']`.
20
+ * @returns Plugin config
21
+ */
22
+ export default definePluginFactory({
23
+ name: 'development',
24
+ enable: true,
25
+ path: import.meta.dirname,
26
+ env: ['local'],
27
+ dependencies: ['watcher'],
28
+ });
29
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLG1CQUFtQixFQUF5QixNQUFNLEtBQUssQ0FBQztBQUVqRSxPQUFPLFlBQVksQ0FBQztBQUVwQjs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBa0JHO0FBQ0gsZUFBZSxtQkFBbUIsQ0FBQztJQUNqQyxJQUFJLEVBQUUsYUFBYTtJQUNuQixNQUFNLEVBQUUsSUFBSTtJQUNaLElBQUksRUFBRSxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU87SUFDekIsR0FBRyxFQUFFLENBQUMsT0FBTyxDQUFDO0lBQ2QsWUFBWSxFQUFFLENBQUMsU0FBUyxDQUFDO0NBQzFCLENBQXFCLENBQUMifQ==
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/development",
3
- "version": "5.0.0-beta.30",
3
+ "version": "5.0.0-beta.31",
4
4
  "description": "development tool for egg",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -22,15 +22,6 @@
22
22
  "types": "./dist/index.d.ts",
23
23
  "main": "./dist/index.js",
24
24
  "module": "./dist/index.js",
25
- "eggPlugin": {
26
- "name": "development",
27
- "env": [
28
- "local"
29
- ],
30
- "dependencies": [
31
- "watcher"
32
- ]
33
- },
34
25
  "keywords": [
35
26
  "egg",
36
27
  "plugin",
@@ -43,15 +34,15 @@
43
34
  "utility": "^2.5.0"
44
35
  },
45
36
  "peerDependencies": {
46
- "egg": "4.1.0-beta.30"
37
+ "egg": "4.1.0-beta.31"
47
38
  },
48
39
  "devDependencies": {
49
- "tsdown": "0.15.9",
40
+ "tsdown": "0.15.10",
50
41
  "typescript": "^5.9.3",
51
- "@eggjs/mock": "7.0.0-beta.30",
52
- "@eggjs/supertest": "9.0.0-beta.30",
53
- "@eggjs/tsconfig": "3.1.0-beta.30",
54
- "egg": "4.1.0-beta.30"
42
+ "@eggjs/mock": "7.0.0-beta.31",
43
+ "@eggjs/supertest": "9.0.0-beta.31",
44
+ "egg": "4.1.0-beta.31",
45
+ "@eggjs/tsconfig": "3.1.0-beta.31"
55
46
  },
56
47
  "engines": {
57
48
  "node": ">=22.18.0"