12 lines
311 B
JavaScript
Executable File
12 lines
311 B
JavaScript
Executable File
#!/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 ] 不存在')
|
|
}
|