()
| 4 | import { declareLocalType, exitWithDbClose, loadEnv, testDbConnect } from './utils.mjs' |
| 5 | |
| 6 | async function main() { |
| 7 | await loadEnv() |
| 8 | await declareLocalType() |
| 9 | |
| 10 | await spinner('数据库连接中...', async () => { |
| 11 | if (!(await testDbConnect())) { |
| 12 | echo(chalk.red('❌ 数据库连接失败')) |
| 13 | process.exit(1) |
| 14 | } |
| 15 | }) |
| 16 | |
| 17 | await $`pnpm drizzle-kit push --strict --verbose`.pipe(process.stdout) |
| 18 | return exitWithDbClose() |
| 19 | } |
| 20 | |
| 21 | main() |
no test coverage detected