plugins: refactory to use default export for new backend system

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Camila Belo <camilaibs@gmail.com>
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Co-authored-by: Philipp Hugenroth <philipph@spotify.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-09-06 14:57:24 +02:00
parent cb7fc410ed
commit 71114ac50e
120 changed files with 277 additions and 200 deletions
+2 -1
View File
@@ -53,7 +53,8 @@ export type AuthHandlerResult = {
};
// @public
export const authPlugin: () => BackendFeature;
const authPlugin: () => BackendFeature;
export default authPlugin;
// @public @deprecated (undocumented)
export type AuthProviderConfig = AuthProviderConfig_2;
+2 -4
View File
@@ -15,12 +15,10 @@
*/
import { createBackend } from '@backstage/backend-defaults';
import { authPlugin } from '../src';
import { authModuleGoogleProvider } from '@backstage/plugin-auth-backend-module-google-provider';
const backend = createBackend();
backend.add(authPlugin);
backend.add(authModuleGoogleProvider);
backend.add(import('../src'));
backend.add(import('@backstage/plugin-auth-backend-module-google-provider'));
backend.start();
+1 -1
View File
@@ -20,7 +20,7 @@
* @packageDocumentation
*/
export { authPlugin } from './authPlugin';
export { authPlugin as default } from './authPlugin';
export * from './service/router';
export type { TokenParams } from './identity';
export * from './providers';