Skip to content

Commit 5885dd5

Browse files
author
Guillaume Chau
committed
fix(ui): configurations: broken package.json mode, closes #1598
1 parent 9efdfaf commit 5885dd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@vue/cli-ui/src/graphql-api/connectors/configurations.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function readFile (config, fileDescriptor, context) {
7070
if (file) {
7171
if (file.type === 'package') {
7272
const pkg = folders.readPackage(cwd.get(), context)
73-
fileData = pkg[config.files.package]
73+
fileData = pkg[fileDescriptor.package]
7474
} else if (file.type === 'js') {
7575
fileData = loadModule(file.path, cwd.get(), true)
7676
} else {
@@ -116,7 +116,7 @@ function writeFile (config, fileId, data, changedFields, context) {
116116
let rawContent
117117
if (file.type === 'package') {
118118
const pkg = folders.readPackage(cwd.get(), context)
119-
pkg[config.files.package] = data
119+
pkg[fileDescriptor.package] = data
120120
rawContent = JSON.stringify(pkg, null, 2)
121121
} else {
122122
if (file.type === 'json') {

0 commit comments

Comments
 (0)