-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
147 lines (147 loc) · 4.79 KB
/
package.json
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"name": "weinoter-backend",
"version": "1.0.0",
"description": "weinoter-backend - 唯守笔记后端",
"author": "weishour",
"scripts": {
"prebuild": "rimraf dist",
"build": "nest build",
"format": "prettier --write \"apps/**/*.ts\" \"libs/**/*.ts\"",
"start": "nest start",
"dev": "nest build --webpack --webpackPath webpack-hmr.config.js --watch",
"debug": "nest start --debug --watch",
"prod": "nest build && node dist/apps/ws/main",
"pm2": "nest build && pm2 start pm2.json",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./apps/api/test/jest-e2e.json",
"typeorm": "ts-node ./node_modules/typeorm/cli",
"typeorm:migration-create": "npm run typeorm migration:create ./migrations/$npm_config_name",
"typeorm:migration-generate": "npm run typeorm migration:generate ./migrations/$npm_config_name -- -d ./typeorm.config.ts",
"typeorm:migration-run": "npm run typeorm migration:run -- -d ./typeorm.config.ts",
"typeorm:migration-revert": "npm run typeorm migration:revert -- -d ./typeorm.config.ts",
"pkg": "nest build && pkg dist/apps/ws/main.js -t node18-linux-x64 --out-path ./target --exclude axios",
"ncu-i": "sudo ncu --interactive --format group"
},
"dependencies": {
"@clickhouse/client": "^1.9.0",
"@nestjs/axios": "^3.1.2",
"@nestjs/cache-manager": "^2.3.0",
"@nestjs/common": "^10.4.12",
"@nestjs/config": "^3.3.0",
"@nestjs/core": "^10.4.12",
"@nestjs/event-emitter": "^2.1.1",
"@nestjs/jwt": "^10.2.0",
"@nestjs/microservices": "^10.4.12",
"@nestjs/passport": "^10.0.3",
"@nestjs/platform-express": "^10.4.12",
"@nestjs/platform-socket.io": "^10.4.12",
"@nestjs/schedule": "^4.1.1",
"@nestjs/swagger": "^8.0.7",
"@nestjs/throttler": "^6.2.1",
"@nestjs/typeorm": "^10.0.2",
"@nestjs/websockets": "^10.4.12",
"@node-rs/argon2": "^2.0.0",
"@socket.io/redis-adapter": "^8.3.0",
"@songkeys/nestjs-redis": "^10.0.0",
"@syncfusion/ej2-base": "^27.2.2",
"@syncfusion/ej2-data": "^27.2.2",
"cache-manager": "^5.7.6",
"cache-manager-ioredis-yet": "^2.1.2",
"casbin": "^5.36.0",
"chalk": "4.1.2",
"cheerio": "^1.0.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"cookie-parser": "^1.4.7",
"date-fns": "^4.1.0",
"decimal.js": "^10.4.3",
"helmet": "^8.0.0",
"ioredis": "^5.4.1",
"joi": "^17.13.3",
"lodash": "^4.17.21",
"mqtt": "^5.10.3",
"ms": "^2.1.3",
"mssql": "^10.0.2",
"mysql2": "^3.11.5",
"ncsrf": "^1.1.0",
"nest-winston": "^1.10.0",
"passport": "^0.7.0",
"passport-jwt": "^4.0.1",
"passport-local": "^1.0.0",
"redis": "^4.7.0",
"reflect-metadata": "^0.2.2",
"rimraf": "^6.0.1",
"rxjs": "^7.8.1",
"serialport": "^12.0.0",
"sharp": "^0.33.5",
"socket.io": "^4.8.1",
"stacktrace-js": "^2.0.2",
"swagger-ui-express": "^5.0.1",
"ts-toolbelt": "^9.6.0",
"typeorm": "^0.3.20",
"uuid": "^11.0.3",
"winston": "^3.17.0",
"winston-daily-rotate-file": "^5.0.0"
},
"devDependencies": {
"@nestjs/cli": "^10.4.8",
"@nestjs/schematics": "^10.2.3",
"@nestjs/testing": "^10.4.12",
"@types/cookie-parser": "^1.4.8",
"@types/express": "^5.0.0",
"@types/jest": "29.5.14",
"@types/lodash": "^4.17.13",
"@types/ms": "^0.7.34",
"@types/multer": "^1.4.12",
"@types/node": "^22.10.1",
"@types/passport-jwt": "^4.0.1",
"@types/passport-local": "^1.0.38",
"@types/supertest": "^6.0.2",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^8.16.0",
"@typescript-eslint/parser": "^8.16.0",
"eslint": "^9.16.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"jest": "^29.7.0",
"prettier": "^3.4.1",
"run-script-webpack-plugin": "^0.2.0",
"source-map-support": "^0.5.21",
"supertest": "^7.0.0",
"ts-jest": "^29.2.5",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "5.7.2",
"webpack": "^5.96.1",
"webpack-node-externals": "^3.0.0"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": ".",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "./coverage",
"testEnvironment": "node",
"roots": [
"<rootDir>/apps/",
"<rootDir>/libs/"
],
"moduleNameMapper": {
"^@weishour/core(|/.*)$": "<rootDir>/libs/core/src/$1"
}
}
}