From 543b3e858c825e454940a9002e14baafbf8fc2c2 Mon Sep 17 00:00:00 2001 From: andresin87 Date: Wed, 19 Jun 2024 10:21:54 +0200 Subject: [PATCH] fix(cli-utils): merging configs --- packages/utils/cli/src/scan/index.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/utils/cli/src/scan/index.mjs b/packages/utils/cli/src/scan/index.mjs index 054e40de0..166227c73 100644 --- a/packages/utils/cli/src/scan/index.mjs +++ b/packages/utils/cli/src/scan/index.mjs @@ -18,11 +18,11 @@ export async function adoption(options) { config = { adoption: merge( - { ...defaultConfig }, + { ...config.adoption }, { ...optionsConfig.adoption, - imports: optionsConfig.imports || defaultConfig.imports, - extensions: optionsConfig.extensions || defaultConfig.extensions, + imports: optionsConfig.imports || config.imports, + extensions: optionsConfig.extensions || config.extensions, } ), }