Skip to content

Commit

Permalink
fix(ui): use fs-extra instead of mkdirp
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed May 11, 2018
1 parent 76a6655 commit 8915a6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/@vue/cli-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"lodash.merge": "^4.6.1",
"lowdb": "^1.0.0",
"lru-cache": "^4.1.2",
"mkdirp": "^0.5.1",
"node-notifier": "^5.2.1",
"semver": "^5.5.0",
"shortid": "^2.2.8",
Expand Down
4 changes: 2 additions & 2 deletions packages/@vue/cli-ui/src/graphql-api/utils/db.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const Lowdb = require('lowdb')
const FileSync = require('lowdb/adapters/FileSync')
const mkdirp = require('mkdirp')
const fs = require('fs-extra')
const { resolve } = require('path')

mkdirp(resolve(__dirname, '../../../live'))
fs.ensureDirSync(resolve(__dirname, '../../../live'))

const db = new Lowdb(new FileSync(resolve(__dirname, '../../../live/db.json')))

Expand Down

0 comments on commit 8915a6f

Please sign in to comment.