You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/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 ] 不存在')
|
|
}
|