Skip to content

Commit 64fef51

Browse files
committed
fix: only update file prop if main object exists
1 parent 7f80f76 commit 64fef51

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/cli.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,12 @@ if (!packageConfig && !doprConfig) {
6666
}
6767

6868
// Backward compat.
69-
packageConfig.file = ensureArray(packageConfig.file);
70-
doprConfig.file = ensureArray(doprConfig.file);
69+
if (packageConfig) {
70+
packageConfig.file = ensureArray(packageConfig.file);
71+
}
72+
if (doprConfig) {
73+
doprConfig.file = ensureArray(doprConfig.file);
74+
}
7175

7276
// Construct configuration
7377
const mergedConfig = deepAssign({}, defaultConfig, packageConfig, doprConfig);

0 commit comments

Comments
 (0)