修改一些目录结构

This commit is contained in:
2021-08-16 22:29:43 +08:00
parent 6a1f9a3f6b
commit f7771815d8
9 changed files with 228 additions and 103 deletions

11
check-config Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/env node
const path = require('path')
const fs = require('fs')
if(!fs.existsSync(path.join(__dirname,'.env'))) {
throw new Error('环境变量文件 [ .env ] 不存在')
}
if(!fs.existsSync(path.join(__dirname,'ormconfig.json'))) {
throw new Error('orm配置文件 [ ormconfig.json ] 不存在')
}