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
45
| {
| "name": "fresenius-dialysis-comms",
| "version": "1.0.0",
| "description": "",
| "main": "fresenius-tcp-server.js",
| "bin": "fresenius-tcp-server.js",
| "scripts": {
| "test": "echo \"Error: no test specified\" && exit 1",
| "app": "node app.js",
| "tcpServer": "node fresenius-tcp-server.js",
| "dev": "nodemon fresenius-tcp-server.js",
| "build": "ncc build fresenius-tcp-server.js -o dist",
| "pkg": "pkg ./dist/index.js",
| "buildPkg": "pkg .",
| "build:pkg:win": "npm run build && pkg -t node18-win-x64 --out-path dist ./dist/index.js",
| "build:pkg:linux": "npm run build && pkg -t node18-linux-x64 --out-path dist ./dist/index.js",
| "build:pkg:linux:wsl": "wsl bash -lc \"cd $(wslpath -a '%cd%') && npm ci && npx pkg -t node18-linux-x64 --out-path dist ./dist/index.js\""
| },
| "author": "",
| "license": "ISC",
| "dependencies": {
| "alibabacloud-iot-device-sdk": "^1.0.0",
| "mqtt": "^5.0.0",
| "serialport": "^13.0.0",
| "winston": "^3.17.0",
| "winston-daily-rotate-file": "^4.7.1"
| },
| "devDependencies": {
| "pkg": "^5.8.1",
| "@vercel/ncc": "^0.38.3",
| "nodemon": "^3.1.9"
| },
| "pkg": {
| "assets": [
| "http-config.json",
| "aliyun-config.json",
| "tcp-config.json"
| ],
| "targets": [
| "node18-win-x64",
| "node18-linux-x64"
| ],
| "outputPath": "dist"
| }
| }
|
|