generated from hanstanawi/nestjs-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
131 lines (131 loc) · 4.1 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
{
"name": "telegram-gpt",
"version": "1.0.0",
"engines": {
"node": ">= 18.x"
},
"description": "Telegram bot that leverages the power of ChatGPT with OpenAI",
"keywords": [
"node.js",
"typescript",
"nestjs",
"openai",
"telegram-bot",
"docker",
"github-actions"
],
"homepage": "https://github.com/hanstanawi/telegram-gpt",
"bugs": {
"url": "https://github.com/hanstanawi/telegram-gpt/issues",
"email": "[email protected]"
},
"repository": "github:hanstanawi/telegram-gpt",
"license": "MIT",
"author": "Hans Tanawi <[email protected]>",
"scripts": {
"build": "nest build",
"db:deploy": "prisma migrate deploy",
"db:up": "docker-compose up postgres -d --build",
"db:down": "docker-compose down",
"db:seed": "prisma db seed",
"db:generate": "prisma generate",
"db:view": "prisma studio",
"db:test:deploy": "dotenv -e .env.test -- prisma migrate deploy",
"db:test:up": "dotenv -e .env.test -- docker-compose -f docker-compose-test.yaml up -d --build",
"db:test:down": "docker-compose -f docker-compose-test.yaml down",
"format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"prepare": "husky install && prisma generate",
"start": "nest start",
"start:dev": "dotenv -e .env -- nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
"lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"lint:types": "tsc --noEmit",
"test": "jest",
"test:watch": "jest --watch",
"test:ci": "jest --ci",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "dotenv -e .env.test -- jest --config ./test/jest-e2e.json",
"test:e2e:watch": "dotenv -e .env.test -- jest --config ./test/jest-e2e.json --watch"
},
"dependencies": {
"@nestjs/cache-manager": "^2.3.0",
"@nestjs/common": "^10.4.4",
"@nestjs/config": "^3.2.3",
"@nestjs/core": "^10.4.5",
"@nestjs/platform-express": "^10.4.7",
"@prisma/client": "^5.22.0",
"cache-manager": "^5.7.6",
"gpt-tokenizer": "^2.6.2",
"nestjs-pino": "^4.1.0",
"nestjs-telegraf": "^2.8.0",
"nestjs-zod": "^4.1.0",
"openai": "^4.72.0",
"pino-http": "^10.3.0",
"pino-pretty": "^11.3.0",
"reflect-metadata": "^0.1.14",
"rxjs": "^7.8.1",
"telegraf": "^4.16.3",
"zod": "^3.23.8"
},
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@nestjs/cli": "^10.4.8",
"@nestjs/schematics": "^10.2.3",
"@nestjs/testing": "^10.4.7",
"@telegraf/types": "^7.1.0",
"@types/cache-manager": "^4.0.6",
"@types/express": "^5.0.0",
"@types/jest": "^29.5.14",
"@types/node": "^22.9.0",
"@types/supertest": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"dotenv-cli": "^7.4.2",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^28.9.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"husky": "^9.1.6",
"jest": "^29.7.0",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"prisma": "^5.22.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.6.3"
},
"prisma": {
"schema": "src/database/schema.prisma",
"seed": "ts-node src/database/seed.ts"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"moduleNameMapper": {
"^src/(.*)$": "<rootDir>/$1"
},
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}