- Implement Prisma storage adapter for Telegram session management - Add middleware to upsert Telegram user data - Extend TelegramUser model with additional fields - Add db:push command to turbo.json and package.json - Extend Prisma client with exists helper method
32 lines
595 B
JSON
32 lines
595 B
JSON
{
|
|
"$schema": "https://turborepo.com/schema.json",
|
|
"tasks": {
|
|
"build": {
|
|
"dependsOn": ["^build", "^db:generate"],
|
|
"outputs": ["dist/**"],
|
|
"env": ["DATABASE_URL", "BOT_TOKEN"]
|
|
},
|
|
"check-types": {
|
|
"dependsOn": ["^check-types"]
|
|
},
|
|
"dev": {
|
|
"dependsOn": ["^db:generate"],
|
|
"persistent": true,
|
|
"cache": false
|
|
},
|
|
"db:generate": {
|
|
"cache": false
|
|
},
|
|
"db:migrate": {
|
|
"cache": false,
|
|
"persistent": true
|
|
},
|
|
"db:deploy": {
|
|
"cache": false
|
|
},
|
|
"db:push": {
|
|
"cache": false
|
|
}
|
|
}
|
|
}
|