package.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. {
  2. "name": "attu",
  3. "version": "2.5.4",
  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.5",
  17. "axios": "^1.7.7",
  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. "csv-writer": "^1.6.0",
  26. "express": "^4.21.2",
  27. "helmet": "^7.1.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. "socket.io": "^4.8.0"
  33. },
  34. "jest": {
  35. "testEnvironment": "node",
  36. "testTimeout": 10000,
  37. "coveragePathIgnorePatterns": [
  38. "/node_modules/"
  39. ],
  40. "rootDir": "src",
  41. "testRegex": ".*\\.test\\.ts$",
  42. "collectCoverageFrom": [
  43. "**/*.service.{js,ts}"
  44. ],
  45. "transform": {
  46. "^.+\\.(t|j)s$": "ts-jest"
  47. },
  48. "coverageDirectory": "../coverage/"
  49. },
  50. "devDependencies": {
  51. "@types/chalk": "^2.2.0",
  52. "@types/compression": "^1.7.5",
  53. "@types/cors": "^2.8.17",
  54. "@types/express": "^4.17.21",
  55. "@types/http-errors": "^2.0.4",
  56. "@types/jest": "^29.5.12",
  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. "@types/supertest": "^6.0.2",
  62. "@types/ws": "^8.5.10",
  63. "electron": "^33.0.1",
  64. "electron-builder": "^25.1.8",
  65. "jest": "^29.7.0",
  66. "nodemon": "^3.1.0",
  67. "prettier": "^3.2.5",
  68. "rimraf": "^5.0.5",
  69. "supertest": "^6.3.4",
  70. "ts-jest": "^29.1.1",
  71. "tslint": "^6.1.3",
  72. "typescript": "^5.4.5"
  73. },
  74. "resolutions": {
  75. "ws": "^8.17.1"
  76. },
  77. "scripts": {
  78. "prebuild": "tslint -c tslint.json -p tsconfig.json --fix",
  79. "build": "yarn clean && tsc",
  80. "build-electron": "node electron-prebuild && yarn build",
  81. "electron": "electron .",
  82. "prestart": "rm -rf dist && yarn build",
  83. "start": "nodemon src/app.ts",
  84. "start:prod": "node dist/src/app.js",
  85. "start:debug": "DEBUG=express:* nodemon src/app.ts",
  86. "test": "cross-env NODE_ENV=test jest --passWithNoTests",
  87. "test:watch": "jest --watch",
  88. "test:cov": "cross-env NODE_ENV=test jest --passWithNoTests --coverage",
  89. "test:report": "cross-env NODE_ENV=test jest --watchAll=false --coverage --coverageReporters='text-summary'",
  90. "clean": "rimraf dist",
  91. "format": "prettier --write '**/*.{ts,js}'",
  92. "mac": "electron-builder --mac",
  93. "linux": "electron-builder --linux",
  94. "win": "electron-builder --win"
  95. },
  96. "nodemonConfig": {
  97. "ignore": [
  98. "**/*.test.ts",
  99. "**/*.spec.ts",
  100. "build",
  101. ".git",
  102. "node_modules"
  103. ],
  104. "watch": [
  105. "src"
  106. ],
  107. "ext": "ts yml"
  108. },
  109. "homepage": "./",
  110. "main": "electron-starter.js",
  111. "build": {
  112. "appId": "milvus",
  113. "directories": {
  114. "output": "electron-app"
  115. },
  116. "files": [
  117. "build/**/*",
  118. "dist/**/*",
  119. "node_modules/**/*",
  120. "electron-starter.js",
  121. "package.json",
  122. "preload.js"
  123. ],
  124. "linux": {
  125. "icon": "./build/attu.icns",
  126. "target": [
  127. "deb"
  128. ]
  129. },
  130. "mac": {
  131. "icon": "./build/attu.icns",
  132. "target": [
  133. {
  134. "target": "default",
  135. "arch": [
  136. "arm64",
  137. "x64"
  138. ]
  139. }
  140. ],
  141. "artifactName": "attu-${os}-${arch}-v${version}.${ext}"
  142. },
  143. "win": {
  144. "icon": "./build/attu.png",
  145. "target": [
  146. {
  147. "target": "nsis"
  148. }
  149. ]
  150. }
  151. }
  152. }