package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. {
  2. "name": "attu",
  3. "version": "2.5.10",
  4. "license": "MIT",
  5. "author": {
  6. "name": "zilliz",
  7. "email": "zilliz@zilliz.com"
  8. },
  9. "description": "Attu helps to manage Milvus easily",
  10. "repository": {
  11. "type": "git",
  12. "url": "https://github.com/zilliztech/attu"
  13. },
  14. "dependencies": {
  15. "@json2csv/plainjs": "^7.0.3",
  16. "@zilliz/milvus2-sdk-node": "2.5.9",
  17. "axios": "^1.8.2",
  18. "chalk": "4.1.2",
  19. "class-sanitizer": "^1.0.1",
  20. "class-transformer": "^0.5.1",
  21. "class-validator": "^0.14.1",
  22. "compression": "^1.7.5",
  23. "cors": "^2.8.5",
  24. "cross-env": "^7.0.3",
  25. "electron-store": "^8.2.0",
  26. "express": "^4.21.2",
  27. "helmet": "^8.0.0",
  28. "http-errors": "^2.0.0",
  29. "lru-cache": "^10.2.0",
  30. "morgan": "^1.10.0",
  31. "node-cron": "^3.0.3",
  32. "openai": "^5.0.1",
  33. "socket.io": "^4.8.1"
  34. },
  35. "jest": {
  36. "testEnvironment": "node",
  37. "testTimeout": 10000,
  38. "coveragePathIgnorePatterns": [
  39. "/node_modules/"
  40. ],
  41. "rootDir": "src",
  42. "testRegex": ".*\\.test\\.ts$",
  43. "collectCoverageFrom": [
  44. "**/*.service.{js,ts}"
  45. ],
  46. "transform": {
  47. "^.+\\.(t|j)s$": "ts-jest"
  48. },
  49. "coverageDirectory": "../coverage/"
  50. },
  51. "devDependencies": {
  52. "@types/chalk": "^2.2.0",
  53. "@types/compression": "^1.7.5",
  54. "@types/cors": "^2.8.17",
  55. "@types/express": "^4.17.21",
  56. "@types/http-errors": "^2.0.4",
  57. "@types/lru-cache": "^7.10.10",
  58. "@types/morgan": "^1.9.4",
  59. "@types/node": "^20.4.2",
  60. "@types/node-cron": "^3.0.8",
  61. "electron": "^35.1.5",
  62. "electron-builder": "^26.0.12",
  63. "jest": "^29.7.0",
  64. "nodemon": "^3.1.0",
  65. "prettier": "^3.2.5",
  66. "rimraf": "^6.0.1",
  67. "ts-jest": "^29.1.1",
  68. "tslint": "^6.1.3",
  69. "typescript": "^5.4.5"
  70. },
  71. "resolutions": {
  72. "ws": "^8.17.1"
  73. },
  74. "scripts": {
  75. "prebuild": "tslint -c tslint.json -p tsconfig.json --fix",
  76. "build": "yarn clean && tsc",
  77. "build-electron": "node electron-prebuild && yarn build",
  78. "electron": "electron .",
  79. "prestart": "rm -rf dist && yarn build",
  80. "start": "nodemon src/app.ts",
  81. "start:prod": "node dist/src/app.js",
  82. "start:debug": "DEBUG=express:* nodemon src/app.ts",
  83. "test": "cross-env NODE_ENV=test jest --passWithNoTests",
  84. "test:watch": "jest --watch",
  85. "test:cov": "cross-env NODE_ENV=test jest --passWithNoTests --coverage",
  86. "test:report": "cross-env NODE_ENV=test jest --watchAll=false --coverage --coverageReporters='text-summary'",
  87. "clean": "rimraf dist",
  88. "format": "prettier --write '**/*.{ts,js}'",
  89. "mac": "electron-builder --mac",
  90. "linux": "electron-builder --linux",
  91. "win": "electron-builder --win"
  92. },
  93. "nodemonConfig": {
  94. "ignore": [
  95. "**/*.test.ts",
  96. "**/*.spec.ts",
  97. "build",
  98. ".git",
  99. "node_modules"
  100. ],
  101. "watch": [
  102. "src"
  103. ],
  104. "ext": "ts yml"
  105. },
  106. "homepage": "./",
  107. "main": "electron-starter.js",
  108. "build": {
  109. "appId": "milvus",
  110. "directories": {
  111. "output": "electron-app"
  112. },
  113. "files": [
  114. "build/**/*",
  115. "dist/**/*",
  116. "node_modules/**/*",
  117. "electron-starter.js",
  118. "package.json",
  119. "preload.js"
  120. ],
  121. "linux": {
  122. "icon": "./build/attu.icns",
  123. "target": [
  124. "deb"
  125. ]
  126. },
  127. "mac": {
  128. "icon": "./build/attu.icns",
  129. "target": [
  130. {
  131. "target": "default",
  132. "arch": [
  133. "arm64",
  134. "x64"
  135. ]
  136. }
  137. ],
  138. "artifactName": "attu-${os}-${arch}-v${version}.${ext}"
  139. },
  140. "win": {
  141. "icon": "./build/attu.png",
  142. "target": [
  143. {
  144. "target": "nsis"
  145. }
  146. ]
  147. }
  148. }
  149. }