backend-defaults: workaround for cyclic import
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/backend-defaults': patch
|
||||
---
|
||||
|
||||
Added a workaround for the cyclic dependency bug across `@backstage/backend-common` and `@backstage/backend-app-api`.
|
||||
@@ -33,6 +33,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@backstage/backend-app-api": "workspace:^",
|
||||
"@backstage/backend-common": "workspace:^",
|
||||
"@backstage/backend-plugin-api": "workspace:^"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -20,5 +20,10 @@
|
||||
* @packageDocumentation
|
||||
*/
|
||||
|
||||
// This import is here as a workaround for a cyclic dependency bug where
|
||||
// backend-common must be loaded before backend-app-api
|
||||
// TODO(Rugvip): Remove this once backend-common is no longer used by backend-app-api
|
||||
import '@backstage/backend-common';
|
||||
|
||||
export type { CreateBackendOptions } from './CreateBackend';
|
||||
export { createBackend } from './CreateBackend';
|
||||
|
||||
@@ -3514,6 +3514,7 @@ __metadata:
|
||||
resolution: "@backstage/backend-defaults@workspace:packages/backend-defaults"
|
||||
dependencies:
|
||||
"@backstage/backend-app-api": "workspace:^"
|
||||
"@backstage/backend-common": "workspace:^"
|
||||
"@backstage/backend-plugin-api": "workspace:^"
|
||||
"@backstage/backend-test-utils": "workspace:^"
|
||||
"@backstage/cli": "workspace:^"
|
||||
|
||||
Reference in New Issue
Block a user