@mindbase/express-admin 1.0.17 → 1.0.18

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/index.ts CHANGED
@@ -1,10 +1,8 @@
1
- // 核心模块
2
- // Service 层
3
- export * as UserService from './service/UserService';
1
+ export * as UserService from "./service/UserService";
4
2
 
5
3
  // 路由
6
- export { default as userRoutes } from './routes/Users.route';
7
- export { default as deviceRoutes } from './routes/Devices.route';
4
+ export { default as userRoutes } from "./routes/Users.route";
5
+ export { default as deviceRoutes } from "./routes/Devices.route";
8
6
 
9
7
  // Zod Schema
10
8
  export {
@@ -17,7 +15,7 @@ export {
17
15
  type ListUsersInput,
18
16
  type UpdateUserInput,
19
17
  type ResetPasswordInput,
20
- } from './zod/user.validation';
18
+ } from "./zod/user.validation";
21
19
 
22
- import AdminModule from './module/AdminModule';
20
+ import AdminModule from "./module/AdminModule";
23
21
  export default AdminModule;
@@ -1,6 +1,9 @@
1
+ import { fileURLToPath } from "url";
1
2
  import { createModule, MindBaseApp, logger } from "@mindbase/express-common";
2
3
  import * as UserService from "../service/UserService";
3
4
 
5
+ const __filename = fileURLToPath(import.meta.url);
6
+
4
7
  /**
5
8
  * 管理模块
6
9
  */
package/package.json CHANGED
@@ -1,16 +1,9 @@
1
1
  {
2
2
  "name": "@mindbase/express-admin",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "exports": {
5
5
  ".": "./index.ts"
6
6
  },
7
- "files": [
8
- "module",
9
- "routes",
10
- "service",
11
- "zod",
12
- "index.ts"
13
- ],
14
7
  "engines": {
15
8
  "node": ">=20.0.0"
16
9
  },
@@ -31,8 +24,7 @@
31
24
  },
32
25
  "scripts": {
33
26
  "test": "vitest run",
34
- "test:watch": "vitest",
35
- "prepublishOnly": "tsc --noEmit"
27
+ "test:watch": "vitest"
36
28
  },
37
29
  "publishConfig": {
38
30
  "access": "public"