backend-defaults: workaround for cyclic import

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-02-23 10:44:57 +01:00
parent f16d9f31cd
commit 5d0693edc0
4 changed files with 12 additions and 0 deletions
+5
View File
@@ -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`.
+1
View File
@@ -33,6 +33,7 @@
},
"dependencies": {
"@backstage/backend-app-api": "workspace:^",
"@backstage/backend-common": "workspace:^",
"@backstage/backend-plugin-api": "workspace:^"
},
"devDependencies": {
+5
View File
@@ -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';
+1
View File
@@ -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:^"