diff --git a/packages/@vue/cli-ui/package.json b/packages/@vue/cli-ui/package.json index e3bd161bf8..a4d8bdd592 100644 --- a/packages/@vue/cli-ui/package.json +++ b/packages/@vue/cli-ui/package.json @@ -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", diff --git a/packages/@vue/cli-ui/src/graphql-api/utils/db.js b/packages/@vue/cli-ui/src/graphql-api/utils/db.js index 7929a1ae00..081b1c8b27 100644 --- a/packages/@vue/cli-ui/src/graphql-api/utils/db.js +++ b/packages/@vue/cli-ui/src/graphql-api/utils/db.js @@ -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')))