forked from Swetrix/swetrix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
141 lines (141 loc) · 4.66 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
{
"name": "swetrix-api",
"version": "2.0.0",
"description": "Swetrix API",
"author": "Andrii R. <[email protected]>",
"private": true,
"license": "AGPL-3.0",
"scripts": {
"deploy": "npm run prebuild && nest build production && mv apps/production/dist dist",
"deploy:selfhosted": "npm run prebuild && nest build selfhosted && mv apps/selfhosted/dist dist",
"refresh-submodules": "git submodule foreach git pull",
"init-submodules": "git submodule update --init --recursive",
"prebuild": "rimraf dist",
"build": "npm run refresh-submodules && nest build production && mv apps/production/dist dist",
"build:selfhosted": "npm run prebuild && nest build selfhosted && mv apps/selfhosted/dist dist && npm run postbuild",
"postbuild": "cp .env dist/.env",
"format": "prettier --write \"apps/selfhosted/src/**/*.ts\" \"apps/production/src/**/*.ts\"",
"clickhouse:initialise": "node migrations/clickhouse/initialise_selfhosted.js",
"start": "cross-env NODE_ENV=development nest start",
"start:dev": "cross-env NODE_ENV=development nest start --watch",
"start:selfhosted": "cross-env NODE_ENV=development nest start selfhosted --watch",
"start:debug": "cross-env NODE_ENV=development nest start --debug --watch",
"start:prod": "npm run clickhouse:initialise && cross-env NODE_ENV=production node dist/main",
"lint": "eslint \"{apps/production/src,apps/selfhosted/src}/**/*.ts\"",
"lint:fix": "eslint \"{apps/production/src,apps/selfhosted/src}/**/*.ts\" --fix",
"find-deadcode": "ts-prune"
},
"dependencies": {
"@faker-js/faker": "^8.0.2",
"@nestjs/axios": "^3.0.0",
"@nestjs/common": "^10.2.4",
"@nestjs/config": "^3.0.1",
"@nestjs/core": "^10.2.4",
"@nestjs/jwt": "^10.1.1",
"@nestjs/mapped-types": "^2.0.2",
"@nestjs/passport": "^10.0.1",
"@nestjs/platform-express": "^10.2.4",
"@nestjs/schedule": "^3.0.3",
"@nestjs/swagger": "^7.1.10",
"@nestjs/typeorm": "^10.0.0",
"@paypal/payouts-sdk": "^1.1.1",
"@sentry/node": "^7.67.0",
"axios": "^1.5.0",
"bcrypt": "^5.1.1",
"blake3": "^2.1.7",
"body-parser": "^1.20.2",
"chalk": "^4.1.2",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"clickhouse": "^2.6.0",
"cookie-parser": "^1.4.6",
"countries-and-timezones": "^3.5.1",
"cross-env": "^7.0.3",
"crypto-js": "^4.1.1",
"dayjs": "^1.11.9",
"dotenv": "^16.3.1",
"eslint-plugin-lodash": "^7.4.0",
"express": "^4.18.2",
"form-data": "^4.0.0",
"front-matter": "^4.0.2",
"googleapis": "^126.0.1",
"handlebars": "^4.7.8",
"ioredis": "^5.3.2",
"ip-range-check": "^0.2.0",
"isbot": "^3.6.13",
"jsonwebtoken": "^9.0.2",
"lodash": "^4.17.21",
"maxmind": "^4.3.11",
"mysql2": "^3.6.0",
"nanoid": "^3.3.6",
"nestjs-form-data": "^1.9.0",
"nestjs-i18n": "^10.3.1",
"nestjs-telegraf": "^2.7.0",
"otplib": "^12.0.1",
"passport": "^0.6.0",
"passport-headerapikey": "^1.2.2",
"passport-jwt": "^4.0.1",
"php-serialize": "^4.1.1",
"postmark": "^3.0.19",
"puppeteer": "^21.1.1",
"randomstring": "^1.3.0",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "^7.8.1",
"svg-captcha": "^1.4.0",
"telegraf": "^4.13.1",
"typeorm": "^0.2.45",
"ua-parser-js": "^1.0.35",
"uuid": "^9.0.0",
"validator": "^13.11.0"
},
"devDependencies": {
"@nestjs/cli": "^10.1.17",
"@nestjs/testing": "^10.2.4",
"@types/bcrypt": "^5.0.0",
"@types/express": "^4.17.17",
"@types/ioredis": "^4.28.10",
"@types/jest": "^29.5.4",
"@types/multer": "^1.4.7",
"@types/node": "^20.5.9",
"@types/passport-jwt": "^3.0.9",
"@types/supertest": "^2.0.12",
"@types/ua-parser-js": "^0.7.37",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"eslint": "^8.48.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.6.4",
"prettier": "^3.0.3",
"supertest": "^6.3.3",
"ts-jest": "^29.1.1",
"ts-loader": "^9.4.4",
"ts-node": "^10.9.1",
"ts-prune": "^0.10.3",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.2.2"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"moduleNameMapper": {
"^src/(.*)$": "<rootDir>/$1"
},
"rootDir": "src",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}