Merge pull request #8087 from backstage/jhaals/loadconfig

config-loader: Change loadConfig return type to object
This commit is contained in:
Johan Haals
2021-11-17 13:05:09 +01:00
committed by GitHub
8 changed files with 172 additions and 113 deletions
+14
View File
@@ -0,0 +1,14 @@
---
'@backstage/config-loader': minor
---
Update `loadConfig` to return `LoadConfigResult` instead of an array of `AppConfig`.
This function is primarily used internally by other config loaders like `loadBackendConfig` which means no changes are required for most users.
If you use `loadConfig` directly you will need to update your usage from:
```diff
- const appConfigs = await loadConfig(options)
+ const { appConfigs } = await loadConfig(options)
```
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/backend-common': patch
'@backstage/cli': patch
---
Update internal usage of `configLoader.loadConfig` that now returns an object instead of an array of configs.