package.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {
  2. "name": "@d8d/orders-module",
  3. "version": "1.0.0",
  4. "description": "订单管理模块 - 提供订单、订单商品和退款的完整CRUD功能,包括订单创建、状态管理、库存更新等业务逻辑",
  5. "type": "module",
  6. "main": "src/index.ts",
  7. "types": "src/index.ts",
  8. "exports": {
  9. ".": {
  10. "types": "./src/index.ts",
  11. "import": "./src/index.ts",
  12. "require": "./src/index.ts"
  13. },
  14. "./services": {
  15. "types": "./src/services/index.ts",
  16. "import": "./src/services/index.ts",
  17. "require": "./src/services/index.ts"
  18. },
  19. "./schemas": {
  20. "types": "./src/schemas/index.ts",
  21. "import": "./src/schemas/index.ts",
  22. "require": "./src/schemas/index.ts"
  23. },
  24. "./routes": {
  25. "types": "./src/routes/index.ts",
  26. "import": "./src/routes/index.ts",
  27. "require": "./src/routes/index.ts"
  28. },
  29. "./entities": {
  30. "types": "./src/entities/index.ts",
  31. "import": "./src/entities/index.ts",
  32. "require": "./src/entities/index.ts"
  33. },
  34. "./types": {
  35. "types": "./src/types/index.ts",
  36. "import": "./src/types/index.ts",
  37. "require": "./src/types/index.ts"
  38. }
  39. },
  40. "files": [
  41. "src"
  42. ],
  43. "scripts": {
  44. "build": "tsc",
  45. "dev": "tsc --watch",
  46. "test": "vitest run",
  47. "test:watch": "vitest",
  48. "test:coverage": "vitest run --coverage",
  49. "test:integration": "vitest run tests/integration",
  50. "lint": "eslint src --ext .ts,.tsx",
  51. "typecheck": "tsc --noEmit"
  52. },
  53. "dependencies": {
  54. "@d8d/shared-types": "workspace:*",
  55. "@d8d/shared-utils": "workspace:*",
  56. "@d8d/shared-crud": "workspace:*",
  57. "@d8d/auth-module": "workspace:*",
  58. "@d8d/user-module": "workspace:*",
  59. "@d8d/goods-module": "workspace:*",
  60. "@d8d/delivery-address-module": "workspace:*",
  61. "@d8d/merchant-module": "workspace:*",
  62. "@d8d/supplier-module": "workspace:*",
  63. "@d8d/file-module": "workspace:*",
  64. "@hono/zod-openapi": "^1.0.2",
  65. "typeorm": "^0.3.20",
  66. "zod": "^4.1.12"
  67. },
  68. "devDependencies": {
  69. "@types/node": "^22.10.2",
  70. "typescript": "^5.8.3",
  71. "vitest": "^3.2.4",
  72. "@d8d/shared-test-util": "workspace:*",
  73. "@typescript-eslint/eslint-plugin": "^8.18.1",
  74. "@typescript-eslint/parser": "^8.18.1",
  75. "eslint": "^9.17.0"
  76. },
  77. "peerDependencies": {
  78. "hono": "^4.8.5"
  79. },
  80. "keywords": [
  81. "orders",
  82. "order-management",
  83. "e-commerce",
  84. "crud",
  85. "api",
  86. "management"
  87. ],
  88. "author": "D8D Team",
  89. "license": "MIT"
  90. }