@spark-ui/cli-utils 2.14.0-beta.2 → 2.14.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spark-ui/cli-utils",
3
- "version": "2.14.0-beta.2",
3
+ "version": "2.14.0-beta.4",
4
4
  "description": "Spark CLI utils",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -16,15 +16,16 @@ export async function adoption(options) {
16
16
  const logger = new Logger({ verbose: optionsConfig.verbose })
17
17
  let config = await loadConfig(configFileRoute, { logger })
18
18
 
19
- config = merge(config, {
20
- adoption: Object.assign(
19
+ config = {
20
+ adoption: merge(
21
21
  { ...defaultConfig },
22
22
  {
23
- ...optionsConfig,
23
+ ...optionsConfig.adoption,
24
+ imports: optionsConfig.imports || defaultConfig.imports,
25
+ extensions: optionsConfig.extensions || defaultConfig.extensions,
24
26
  }
25
27
  ),
26
- })
27
-
28
+ }
28
29
  console.log(JSON.stringify(config, null, 2))
29
30
 
30
31
  let importCount = 0