Skip to content

Commit 4ff95d8

Browse files
committed
fixup!
1 parent 379b777 commit 4ff95d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils/configuration/index.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ const merge = (objs, maxDepth, currentDepth = 0) => {
6363
? [...resultVal, ...currentVal]
6464
: // result is array, current is string: keep result (array wins)
6565
Array.isArray(resultVal) && typeof currentVal === 'string'
66-
? resultVal
66+
? resultVal.concat([currentVal])
6767
: // result is string, current is array: keep current (array wins)
6868
typeof resultVal === 'string' && Array.isArray(currentVal)
69-
? currentVal
69+
? currentVal.concat([resultVal])
7070
: // Both are objects: recursively merge if depth allows
7171
typeof resultVal === 'object' &&
7272
typeof currentVal === 'object'
@@ -162,7 +162,7 @@ export const createRunConfiguration = async options => {
162162
// our object.
163163
const merged = merge(
164164
[config, createConfigFromCLIOptions(options), getDefaultConfig()],
165-
2
165+
1
166166
);
167167

168168
// These need to be coerced

0 commit comments

Comments
 (0)