From d8682fe06b480c77f3df19c9a34217fade028ed4 Mon Sep 17 00:00:00 2001 From: lizhengnacl Date: Sat, 27 Aug 2022 10:11:42 +0800 Subject: [PATCH] fix: get the correct .vurec configuration path --- packages/@vue/cli/lib/config.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/@vue/cli/lib/config.js b/packages/@vue/cli/lib/config.js index 908b79f36a..a0b3b75ffb 100644 --- a/packages/@vue/cli/lib/config.js +++ b/packages/@vue/cli/lib/config.js @@ -1,10 +1,9 @@ const fs = require('fs-extra') -const path = require('path') -const homedir = require('os').homedir() const { get, set, unset, error, launch } = require('@vue/cli-shared-utils') +const {getRcPath} = require('./util/rcPath'); async function configure (value, options) { - const file = path.resolve(homedir, '.vuerc') + const file = getRcPath('.vuerc') const config = await fs.readJson(file) if (!options.delete && !options.get && !options.edit && !options.set) {