fix coreServices conflicts
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
import {
|
||||
BackendFeature,
|
||||
ExtensionPoint,
|
||||
lifecycleServiceRef,
|
||||
coreServices,
|
||||
ServiceRef,
|
||||
} from '@backstage/backend-plugin-api';
|
||||
import { BackendLifecycleImpl } from '../services/implementations/lifecycleService';
|
||||
@@ -175,7 +175,7 @@ export class BackendInitializer {
|
||||
this.#started = false;
|
||||
|
||||
const lifecycleService = await this.#serviceHolder.get(
|
||||
lifecycleServiceRef,
|
||||
coreServices.lifecycle,
|
||||
'root',
|
||||
);
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
createExtensionPoint,
|
||||
createServiceFactory,
|
||||
createServiceRef,
|
||||
lifecycleServiceRef,
|
||||
coreServices,
|
||||
} from '@backstage/backend-plugin-api';
|
||||
import { startTestBackend } from './TestBackend';
|
||||
|
||||
@@ -105,7 +105,7 @@ describe('TestBackend', () => {
|
||||
register(env) {
|
||||
env.registerInit({
|
||||
deps: {
|
||||
lifecycle: lifecycleServiceRef,
|
||||
lifecycle: coreServices.lifecycle,
|
||||
},
|
||||
async init({ lifecycle }) {
|
||||
lifecycle.addShutdownHook({ fn: shutdownSpy });
|
||||
|
||||
Reference in New Issue
Block a user