No effect

This commit is contained in:
yi-ge 2019-06-15 14:00:42 +08:00
parent c6c1e6bf09
commit a8be36a3f6
2 changed files with 5 additions and 1 deletions

4
APP-distribution-db.json Normal file
View File

@ -0,0 +1,4 @@
{
"appLog": [],
"buildLog": []
}

View File

@ -4,7 +4,7 @@ import FileSync from 'lowdb/adapters/FileSync'
import { SYSTEM } from '../config'
const isDev = process.env.NODE_ENV ? process.env.NODE_ENV === 'development' : false
const adapter = isDev ? new FileSync(path.join(SYSTEM.NAME + '-distribution-db.json')) : new FileSync(path.join(SYSTEM.WORKPATH, SYSTEM.NAME + '-distribution-db.json'))
const adapter = new FileSync(isDev ? path.join(SYSTEM.NAME + '-distribution-db.json') : path.join(SYSTEM.WORKPATH, SYSTEM.NAME + '-distribution-db.json'))
const db = low(adapter)
if (!db.get('appLog').value()) {