chenyc
2026-03-22 7885cede659f3255be56f77c1eef2ada7387d6f1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
  "name": "sws-communication-gateway",
  "version": "1.0.0",
  "description": "透析机 Socket 通讯网关服务端",
  "main": "src/index.js",
  "scripts": {
    "start": "node src/index.js",
    "dev": "node src/index.js",
    "build": "ncc build src/index.js -o dist",
    "stress:50": "node scripts/stress-50-devices.js",
    "pkg": "npm run build && pkg ./dist/index.js --targets node18-win-x64,node18-linux-x64 --out-path dist",
    "build:exe": "pkg . --targets node18-win-x64 --out-path dist",
    "build:linux": "pkg . --targets node18-linux-x64 --out-path dist",
    "build:all": "pkg . --targets node18-win-x64,node18-linux-x64 --out-path dist"
  },
  "bin": "src/index.js",
  "dependencies": {
    "aliyun-iot-device-sdk": "^1.0.1",
    "axios": "^1.13.6",
    "express": "^4.19.2",
    "mqtt": "^5.7.0",
    "qs": "^6.15.0",
    "winston": "^3.17.0",
    "winston-daily-rotate-file": "^5.0.0"
  },
  "devDependencies": {
    "pkg": "^5.8.1",
    "@vercel/ncc": "^0.38.1"
  },
  "pkg": {
    "assets": [
      "schema.json",
      "config.json"
    ],
    "scripts": [
      "src/**/*.js"
    ],
    "targets": [
      "node18-win-x64",
      "node18-linux-x64"
    ],
    "outputPath": "dist"
  }
}