fix coreServices conflicts

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-12-02 16:43:54 +01:00
parent e507d9dbb7
commit bb41a58c6a
2 changed files with 4 additions and 4 deletions
@@ -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 });