diff --git a/.changeset/dirty-cars-poke.md b/.changeset/dirty-cars-poke.md new file mode 100644 index 0000000000..5412229f34 --- /dev/null +++ b/.changeset/dirty-cars-poke.md @@ -0,0 +1,34 @@ +--- +'@backstage/plugin-adr-backend': minor +'@backstage/plugin-airbrake-backend': minor +'@backstage/plugin-auth-backend': minor +'@backstage/plugin-azure-devops-backend': minor +'@backstage/plugin-badges-backend': minor +'@backstage/plugin-bazaar-backend': minor +'@backstage/plugin-catalog-backend-module-unprocessed': minor +'@backstage/plugin-devtools-backend': minor +'@backstage/plugin-entity-feedback-backend': minor +'@backstage/plugin-kafka-backend': minor +'@backstage/plugin-lighthouse-backend': minor +'@backstage/plugin-linguist-backend': minor +'@backstage/plugin-periskop-backend': minor +'@backstage/plugin-proxy-backend': minor +'@backstage/plugin-todo-backend': minor +'@backstage/plugin-user-settings-backend': minor +--- + +**BREAKING**: The export for the new backend system has been moved to be the `default` export. + +For example, if you are currently importing the plugin using the following pattern: + +```ts +import { examplePlugin } from '@backstage/plugin-example-backend'; + +backend.add(examplePlugin); +``` + +It should be migrated to this: + +```ts +backend.add(import('@backstage/plugin-example-backend')); +``` diff --git a/.changeset/dirty-cars-smoke.md b/.changeset/dirty-cars-smoke.md new file mode 100644 index 0000000000..5ba8380d68 --- /dev/null +++ b/.changeset/dirty-cars-smoke.md @@ -0,0 +1,48 @@ +--- +'@backstage/plugin-app-backend': patch +'@backstage/plugin-auth-backend-module-gcp-iap-provider': patch +'@backstage/plugin-auth-backend-module-github-provider': patch +'@backstage/plugin-auth-backend-module-gitlab-provider': patch +'@backstage/plugin-auth-backend-module-google-provider': patch +'@backstage/plugin-catalog-backend': patch +'@backstage/plugin-catalog-backend-module-aws': patch +'@backstage/plugin-catalog-backend-module-azure': patch +'@backstage/plugin-catalog-backend-module-bitbucket-cloud': patch +'@backstage/plugin-catalog-backend-module-bitbucket-server': patch +'@backstage/plugin-catalog-backend-module-gcp': patch +'@backstage/plugin-catalog-backend-module-gerrit': patch +'@backstage/plugin-catalog-backend-module-github': patch +'@backstage/plugin-catalog-backend-module-gitlab': patch +'@backstage/plugin-catalog-backend-module-incremental-ingestion': patch +'@backstage/plugin-catalog-backend-module-msgraph': patch +'@backstage/plugin-catalog-backend-module-puppetdb': patch +'@backstage/plugin-events-backend': patch +'@backstage/plugin-events-backend-module-aws-sqs': patch +'@backstage/plugin-kubernetes-backend': patch +'@backstage/plugin-permission-backend': patch +'@backstage/plugin-permission-backend-module-allow-all-policy': patch +'@backstage/plugin-scaffolder-backend': patch +'@backstage/plugin-search-backend': patch +'@backstage/plugin-search-backend-module-catalog': patch +'@backstage/plugin-search-backend-module-elasticsearch': patch +'@backstage/plugin-search-backend-module-explore': patch +'@backstage/plugin-search-backend-module-pg': patch +'@backstage/plugin-search-backend-module-techdocs': patch +'@backstage/plugin-techdocs-backend': patch +--- + +The export for the new backend system has been moved to be the `default` export. + +For example, if you are currently importing the plugin using the following pattern: + +```ts +import { examplePlugin } from '@backstage/plugin-example-backend'; + +backend.add(examplePlugin); +``` + +It should be migrated to this: + +```ts +backend.add(import('@backstage/plugin-example-backend')); +``` diff --git a/packages/backend-next/src/index.ts b/packages/backend-next/src/index.ts index 6f736a2033..cf7734c089 100644 --- a/packages/backend-next/src/index.ts +++ b/packages/backend-next/src/index.ts @@ -15,81 +15,31 @@ */ import { createBackend } from '@backstage/backend-defaults'; -import { appPlugin } from '@backstage/plugin-app-backend/alpha'; -import { catalogPlugin } from '@backstage/plugin-catalog-backend/alpha'; -import { kubernetesPlugin } from '@backstage/plugin-kubernetes-backend/alpha'; -import { permissionPlugin } from '@backstage/plugin-permission-backend/alpha'; -import { permissionModuleAllowAllPolicy } from '@backstage/plugin-permission-backend-module-allow-all-policy'; -import { scaffolderPlugin } from '@backstage/plugin-scaffolder-backend/alpha'; -import { catalogModuleTemplateKind } from '@backstage/plugin-scaffolder-backend/alpha'; -import { searchModuleCatalogCollator } from '@backstage/plugin-search-backend-module-catalog/alpha'; -import { searchModuleExploreCollator } from '@backstage/plugin-search-backend-module-explore/alpha'; -import { searchModuleTechDocsCollator } from '@backstage/plugin-search-backend-module-techdocs/alpha'; -import { searchPlugin } from '@backstage/plugin-search-backend/alpha'; -import { techdocsPlugin } from '@backstage/plugin-techdocs-backend/alpha'; -import { todoPlugin } from '@backstage/plugin-todo-backend'; -import { entityFeedbackPlugin } from '@backstage/plugin-entity-feedback-backend'; -import { catalogModuleUnprocessedEntities } from '@backstage/plugin-catalog-backend-module-unprocessed'; -import { badgesPlugin } from '@backstage/plugin-badges-backend'; -import { azureDevOpsPlugin } from '@backstage/plugin-azure-devops-backend'; -import { linguistPlugin } from '@backstage/plugin-linguist-backend'; -import { devtoolsPlugin } from '@backstage/plugin-devtools-backend'; -import { adrPlugin } from '@backstage/plugin-adr-backend'; -import { lighthousePlugin } from '@backstage/plugin-lighthouse-backend'; -import { proxyPlugin } from '@backstage/plugin-proxy-backend'; const backend = createBackend(); -backend.add(appPlugin()); - -// Badges -backend.add(badgesPlugin()); - -// Azure DevOps -backend.add(azureDevOpsPlugin()); - -// DevTools -backend.add(devtoolsPlugin()); - -// Entity Feedback -backend.add(entityFeedbackPlugin()); - -// Linguist -backend.add(linguistPlugin()); - -// Todo -backend.add(todoPlugin()); - -backend.add(adrPlugin()); - -// Techdocs -backend.add(techdocsPlugin()); - -// Catalog -backend.add(catalogPlugin()); -backend.add(catalogModuleTemplateKind()); - -backend.add(scaffolderPlugin()); - -// Search -backend.add(searchPlugin()); -backend.add(searchModuleCatalogCollator()); -backend.add(searchModuleTechDocsCollator()); -backend.add(searchModuleExploreCollator()); - -// Kubernetes -backend.add(kubernetesPlugin()); - -// Lighthouse -backend.add(lighthousePlugin()); - -// Proxy -backend.add(proxyPlugin()); - -// Permissions -backend.add(permissionPlugin()); -backend.add(permissionModuleAllowAllPolicy()); - -backend.add(catalogModuleUnprocessedEntities()); +backend.add(import('@backstage/plugin-adr-backend')); +backend.add(import('@backstage/plugin-app-backend/alpha')); +backend.add(import('@backstage/plugin-azure-devops-backend')); +backend.add(import('@backstage/plugin-badges-backend')); +backend.add(import('@backstage/plugin-catalog-backend-module-unprocessed')); +backend.add(import('@backstage/plugin-catalog-backend/alpha')); +backend.add(import('@backstage/plugin-devtools-backend')); +backend.add(import('@backstage/plugin-entity-feedback-backend')); +backend.add(import('@backstage/plugin-kubernetes-backend/alpha')); +backend.add(import('@backstage/plugin-lighthouse-backend')); +backend.add(import('@backstage/plugin-linguist-backend')); +backend.add( + import('@backstage/plugin-permission-backend-module-allow-all-policy'), +); +backend.add(import('@backstage/plugin-permission-backend/alpha')); +backend.add(import('@backstage/plugin-proxy-backend')); +backend.add(import('@backstage/plugin-scaffolder-backend/alpha')); +backend.add(import('@backstage/plugin-search-backend-module-catalog/alpha')); +backend.add(import('@backstage/plugin-search-backend-module-explore/alpha')); +backend.add(import('@backstage/plugin-search-backend-module-techdocs/alpha')); +backend.add(import('@backstage/plugin-search-backend/alpha')); +backend.add(import('@backstage/plugin-techdocs-backend/alpha')); +backend.add(import('@backstage/plugin-todo-backend')); backend.start(); diff --git a/plugins/adr-backend/api-report.md b/plugins/adr-backend/api-report.md index 2fd22ef9cd..1247a7aa8f 100644 --- a/plugins/adr-backend/api-report.md +++ b/plugins/adr-backend/api-report.md @@ -45,7 +45,8 @@ export type AdrParserContext = { }; // @public -export const adrPlugin: () => BackendFeature; +const adrPlugin: () => BackendFeature; +export default adrPlugin; // @public (undocumented) export type AdrRouterOptions = { diff --git a/plugins/adr-backend/src/index.ts b/plugins/adr-backend/src/index.ts index eeaf6b4cd0..a2a9788dcb 100644 --- a/plugins/adr-backend/src/index.ts +++ b/plugins/adr-backend/src/index.ts @@ -22,4 +22,4 @@ export * from './search'; export * from './service'; -export { adrPlugin } from './plugin'; +export { adrPlugin as default } from './plugin'; diff --git a/plugins/airbrake-backend/api-report.md b/plugins/airbrake-backend/api-report.md index c410245e31..4658767b4a 100644 --- a/plugins/airbrake-backend/api-report.md +++ b/plugins/airbrake-backend/api-report.md @@ -14,7 +14,8 @@ export interface AirbrakeConfig { } // @public -export const airbrakePlugin: () => BackendFeature; +const airbrakePlugin: () => BackendFeature; +export default airbrakePlugin; // @public export function createRouter(options: RouterOptions): Promise; diff --git a/plugins/airbrake-backend/src/index.ts b/plugins/airbrake-backend/src/index.ts index 5905a7e0e5..3f660dad62 100644 --- a/plugins/airbrake-backend/src/index.ts +++ b/plugins/airbrake-backend/src/index.ts @@ -22,4 +22,4 @@ export * from './service/router'; export * from './config'; -export { airbrakePlugin } from './plugin'; +export { airbrakePlugin as default } from './plugin'; diff --git a/plugins/app-backend/alpha-api-report.md b/plugins/app-backend/alpha-api-report.md index 5fb0546a79..615065efd7 100644 --- a/plugins/app-backend/alpha-api-report.md +++ b/plugins/app-backend/alpha-api-report.md @@ -6,7 +6,8 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; // @alpha -export const appPlugin: () => BackendFeature; +const appPlugin: () => BackendFeature; +export default appPlugin; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/app-backend/src/alpha.ts b/plugins/app-backend/src/alpha.ts index edb5c8caf5..830e3587dc 100644 --- a/plugins/app-backend/src/alpha.ts +++ b/plugins/app-backend/src/alpha.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export { appPlugin } from './service/appPlugin'; +export { appPlugin as default } from './service/appPlugin'; diff --git a/plugins/auth-backend-module-gcp-iap-provider/api-report.md b/plugins/auth-backend-module-gcp-iap-provider/api-report.md index 02b77cea36..821aa8e437 100644 --- a/plugins/auth-backend-module-gcp-iap-provider/api-report.md +++ b/plugins/auth-backend-module-gcp-iap-provider/api-report.md @@ -9,7 +9,8 @@ import { ProxyAuthenticator } from '@backstage/plugin-auth-node'; import { SignInResolverFactory } from '@backstage/plugin-auth-node'; // @public (undocumented) -export const authModuleGcpIapProvider: () => BackendFeature; +const authModuleGcpIapProvider: () => BackendFeature; +export default authModuleGcpIapProvider; // @public (undocumented) export const gcpIapAuthenticator: ProxyAuthenticator< diff --git a/plugins/auth-backend-module-gcp-iap-provider/src/index.ts b/plugins/auth-backend-module-gcp-iap-provider/src/index.ts index be6626a815..0cbd54d027 100644 --- a/plugins/auth-backend-module-gcp-iap-provider/src/index.ts +++ b/plugins/auth-backend-module-gcp-iap-provider/src/index.ts @@ -15,6 +15,6 @@ */ export { gcpIapAuthenticator } from './authenticator'; -export { authModuleGcpIapProvider } from './module'; +export { authModuleGcpIapProvider as default } from './module'; export { gcpIapSignInResolvers } from './resolvers'; export { type GcpIapResult, type GcpIapTokenInfo } from './types'; diff --git a/plugins/auth-backend-module-github-provider/api-report.md b/plugins/auth-backend-module-github-provider/api-report.md index 2d0b33334c..3f2c5030d2 100644 --- a/plugins/auth-backend-module-github-provider/api-report.md +++ b/plugins/auth-backend-module-github-provider/api-report.md @@ -11,7 +11,8 @@ import { PassportProfile } from '@backstage/plugin-auth-node'; import { SignInResolverFactory } from '@backstage/plugin-auth-node'; // @public (undocumented) -export const authModuleGithubProvider: () => BackendFeature; +const authModuleGithubProvider: () => BackendFeature; +export default authModuleGithubProvider; // @public (undocumented) export const githubAuthenticator: OAuthAuthenticator< diff --git a/plugins/auth-backend-module-github-provider/dev/index.ts b/plugins/auth-backend-module-github-provider/dev/index.ts index 9ea084004a..d3c18c1d48 100644 --- a/plugins/auth-backend-module-github-provider/dev/index.ts +++ b/plugins/auth-backend-module-github-provider/dev/index.ts @@ -15,12 +15,10 @@ */ import { createBackend } from '@backstage/backend-defaults'; -import { authPlugin } from '@backstage/plugin-auth-backend'; -import { authModuleGithubProvider } from '../src'; const backend = createBackend(); -backend.add(authPlugin); -backend.add(authModuleGithubProvider); +backend.add(import('@backstage/plugin-auth-backend')); +backend.add(import('../src')); backend.start(); diff --git a/plugins/auth-backend-module-github-provider/src/index.ts b/plugins/auth-backend-module-github-provider/src/index.ts index ba389cbdc7..646ba7c92a 100644 --- a/plugins/auth-backend-module-github-provider/src/index.ts +++ b/plugins/auth-backend-module-github-provider/src/index.ts @@ -21,5 +21,5 @@ */ export { githubAuthenticator } from './authenticator'; -export { authModuleGithubProvider } from './module'; +export { authModuleGithubProvider as default } from './module'; export { githubSignInResolvers } from './resolvers'; diff --git a/plugins/auth-backend-module-github-provider/src/module.test.ts b/plugins/auth-backend-module-github-provider/src/module.test.ts index d4fc36cbc6..437e002bc3 100644 --- a/plugins/auth-backend-module-github-provider/src/module.test.ts +++ b/plugins/auth-backend-module-github-provider/src/module.test.ts @@ -15,7 +15,6 @@ */ import { mockServices, startTestBackend } from '@backstage/backend-test-utils'; -import { authPlugin } from '@backstage/plugin-auth-backend'; import { authModuleGithubProvider } from './module'; import request from 'supertest'; import { decodeOAuthState } from '@backstage/plugin-auth-node'; @@ -24,7 +23,7 @@ describe('authModuleGithubProvider', () => { it('should start', async () => { const { server } = await startTestBackend({ features: [ - authPlugin, + import('@backstage/plugin-auth-backend'), authModuleGithubProvider, mockServices.rootConfig.factory({ data: { diff --git a/plugins/auth-backend-module-gitlab-provider/api-report.md b/plugins/auth-backend-module-gitlab-provider/api-report.md index e93208688a..d6ec7ee82a 100644 --- a/plugins/auth-backend-module-gitlab-provider/api-report.md +++ b/plugins/auth-backend-module-gitlab-provider/api-report.md @@ -11,7 +11,8 @@ import { PassportProfile } from '@backstage/plugin-auth-node'; import { SignInResolverFactory } from '@backstage/plugin-auth-node'; // @public (undocumented) -export const authModuleGitlabProvider: () => BackendFeature; +const authModuleGitlabProvider: () => BackendFeature; +export default authModuleGitlabProvider; // @public (undocumented) export const gitlabAuthenticator: OAuthAuthenticator< diff --git a/plugins/auth-backend-module-gitlab-provider/dev/index.ts b/plugins/auth-backend-module-gitlab-provider/dev/index.ts index b2b92e5cb5..d3c18c1d48 100644 --- a/plugins/auth-backend-module-gitlab-provider/dev/index.ts +++ b/plugins/auth-backend-module-gitlab-provider/dev/index.ts @@ -15,12 +15,10 @@ */ import { createBackend } from '@backstage/backend-defaults'; -import { authPlugin } from '@backstage/plugin-auth-backend'; -import { authModuleGitlabProvider } from '../src'; const backend = createBackend(); -backend.add(authPlugin); -backend.add(authModuleGitlabProvider); +backend.add(import('@backstage/plugin-auth-backend')); +backend.add(import('../src')); backend.start(); diff --git a/plugins/auth-backend-module-gitlab-provider/src/index.ts b/plugins/auth-backend-module-gitlab-provider/src/index.ts index 7136b89612..c581b76005 100644 --- a/plugins/auth-backend-module-gitlab-provider/src/index.ts +++ b/plugins/auth-backend-module-gitlab-provider/src/index.ts @@ -21,5 +21,5 @@ */ export { gitlabAuthenticator } from './authenticator'; -export { authModuleGitlabProvider } from './module'; +export { authModuleGitlabProvider as default } from './module'; export { gitlabSignInResolvers } from './resolvers'; diff --git a/plugins/auth-backend-module-gitlab-provider/src/module.test.ts b/plugins/auth-backend-module-gitlab-provider/src/module.test.ts index 633a8ee639..da34d64d03 100644 --- a/plugins/auth-backend-module-gitlab-provider/src/module.test.ts +++ b/plugins/auth-backend-module-gitlab-provider/src/module.test.ts @@ -15,7 +15,6 @@ */ import { mockServices, startTestBackend } from '@backstage/backend-test-utils'; -import { authPlugin } from '@backstage/plugin-auth-backend'; import { authModuleGitlabProvider } from './module'; import request from 'supertest'; import { decodeOAuthState } from '@backstage/plugin-auth-node'; @@ -24,7 +23,7 @@ describe('authModuleGitlabProvider', () => { it('should start', async () => { const { server } = await startTestBackend({ features: [ - authPlugin, + import('@backstage/plugin-auth-backend'), authModuleGitlabProvider, mockServices.rootConfig.factory({ data: { diff --git a/plugins/auth-backend-module-google-provider/api-report.md b/plugins/auth-backend-module-google-provider/api-report.md index 8040c44832..7fab5d33a9 100644 --- a/plugins/auth-backend-module-google-provider/api-report.md +++ b/plugins/auth-backend-module-google-provider/api-report.md @@ -11,7 +11,8 @@ import { PassportProfile } from '@backstage/plugin-auth-node'; import { SignInResolverFactory } from '@backstage/plugin-auth-node'; // @public (undocumented) -export const authModuleGoogleProvider: () => BackendFeature; +const authModuleGoogleProvider: () => BackendFeature; +export default authModuleGoogleProvider; // @public (undocumented) export const googleAuthenticator: OAuthAuthenticator< diff --git a/plugins/auth-backend-module-google-provider/src/index.ts b/plugins/auth-backend-module-google-provider/src/index.ts index 9999dd2bc5..96d3db9821 100644 --- a/plugins/auth-backend-module-google-provider/src/index.ts +++ b/plugins/auth-backend-module-google-provider/src/index.ts @@ -15,5 +15,5 @@ */ export { googleAuthenticator } from './authenticator'; -export { authModuleGoogleProvider } from './module'; +export { authModuleGoogleProvider as default } from './module'; export { googleSignInResolvers } from './resolvers'; diff --git a/plugins/auth-backend-module-google-provider/src/module.test.ts b/plugins/auth-backend-module-google-provider/src/module.test.ts index d186064230..59066acd4c 100644 --- a/plugins/auth-backend-module-google-provider/src/module.test.ts +++ b/plugins/auth-backend-module-google-provider/src/module.test.ts @@ -15,7 +15,6 @@ */ import { mockServices, startTestBackend } from '@backstage/backend-test-utils'; -import { authPlugin } from '@backstage/plugin-auth-backend'; import { authModuleGoogleProvider } from './module'; import request from 'supertest'; import { decodeOAuthState } from '@backstage/plugin-auth-node'; @@ -24,7 +23,7 @@ describe('authModuleGoogleProvider', () => { it('should start', async () => { const { server } = await startTestBackend({ features: [ - authPlugin, + import('@backstage/plugin-auth-backend'), authModuleGoogleProvider, mockServices.rootConfig.factory({ data: { diff --git a/plugins/auth-backend/api-report.md b/plugins/auth-backend/api-report.md index d50a26db2e..6372c2ee60 100644 --- a/plugins/auth-backend/api-report.md +++ b/plugins/auth-backend/api-report.md @@ -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; diff --git a/plugins/auth-backend/dev/index.ts b/plugins/auth-backend/dev/index.ts index 4d295bdc77..e1fac31318 100644 --- a/plugins/auth-backend/dev/index.ts +++ b/plugins/auth-backend/dev/index.ts @@ -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(); diff --git a/plugins/auth-backend/src/index.ts b/plugins/auth-backend/src/index.ts index d8323e02ee..3943387e15 100644 --- a/plugins/auth-backend/src/index.ts +++ b/plugins/auth-backend/src/index.ts @@ -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'; diff --git a/plugins/azure-devops-backend/api-report.md b/plugins/azure-devops-backend/api-report.md index a2a43cd6af..8c916a1495 100644 --- a/plugins/azure-devops-backend/api-report.md +++ b/plugins/azure-devops-backend/api-report.md @@ -96,7 +96,8 @@ export class AzureDevOpsApi { } // @public -export const azureDevOpsPlugin: () => BackendFeature; +const azureDevOpsPlugin: () => BackendFeature; +export default azureDevOpsPlugin; // @public (undocumented) export function createRouter(options: RouterOptions): Promise; diff --git a/plugins/azure-devops-backend/src/index.ts b/plugins/azure-devops-backend/src/index.ts index c0b1276acf..3c802e7144 100644 --- a/plugins/azure-devops-backend/src/index.ts +++ b/plugins/azure-devops-backend/src/index.ts @@ -22,4 +22,4 @@ export { AzureDevOpsApi } from './api'; export * from './service/router'; -export { azureDevOpsPlugin } from './plugin'; +export { azureDevOpsPlugin as default } from './plugin'; diff --git a/plugins/badges-backend/api-report.md b/plugins/badges-backend/api-report.md index 4594228543..ab5dbd9720 100644 --- a/plugins/badges-backend/api-report.md +++ b/plugins/badges-backend/api-report.md @@ -83,7 +83,8 @@ export type BadgeSpec = { }; // @public -export const badgesPlugin: () => BackendFeature; +const badgesPlugin: () => BackendFeature; +export default badgesPlugin; // @public export interface BadgesStore { diff --git a/plugins/badges-backend/src/index.ts b/plugins/badges-backend/src/index.ts index 0c417a7ad6..b114704565 100644 --- a/plugins/badges-backend/src/index.ts +++ b/plugins/badges-backend/src/index.ts @@ -25,4 +25,4 @@ export * from './lib'; export * from './service/router'; export * from './types'; export * from './database/badgesStore'; -export { badgesPlugin } from './plugin'; +export { badgesPlugin as default } from './plugin'; diff --git a/plugins/bazaar-backend/api-report.md b/plugins/bazaar-backend/api-report.md index 6281530851..d9243fd3af 100644 --- a/plugins/bazaar-backend/api-report.md +++ b/plugins/bazaar-backend/api-report.md @@ -11,7 +11,8 @@ import { Logger } from 'winston'; import { PluginDatabaseManager } from '@backstage/backend-common'; // @alpha -export const bazaarPlugin: () => BackendFeature; +const bazaarPlugin: () => BackendFeature; +export default bazaarPlugin; // @public (undocumented) export function createRouter(options: RouterOptions): Promise; diff --git a/plugins/bazaar-backend/src/index.ts b/plugins/bazaar-backend/src/index.ts index dd0cdbb750..d6f3df2d04 100644 --- a/plugins/bazaar-backend/src/index.ts +++ b/plugins/bazaar-backend/src/index.ts @@ -15,4 +15,4 @@ */ export * from './service/router'; -export { bazaarPlugin } from './plugin'; +export { bazaarPlugin as default } from './plugin'; diff --git a/plugins/catalog-backend-module-aws/alpha-api-report.md b/plugins/catalog-backend-module-aws/alpha-api-report.md index f78f6a802d..218acc7506 100644 --- a/plugins/catalog-backend-module-aws/alpha-api-report.md +++ b/plugins/catalog-backend-module-aws/alpha-api-report.md @@ -6,7 +6,8 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; // @alpha -export const catalogModuleAwsS3EntityProvider: () => BackendFeature; +const catalogModuleAwsS3EntityProvider: () => BackendFeature; +export default catalogModuleAwsS3EntityProvider; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/catalog-backend-module-aws/src/alpha.ts b/plugins/catalog-backend-module-aws/src/alpha.ts index c277a0a680..01a9b25f7c 100644 --- a/plugins/catalog-backend-module-aws/src/alpha.ts +++ b/plugins/catalog-backend-module-aws/src/alpha.ts @@ -15,3 +15,4 @@ */ export * from './module'; +export { default } from './module'; diff --git a/plugins/catalog-backend-module-aws/src/module/index.ts b/plugins/catalog-backend-module-aws/src/module/index.ts index 5644c034ea..2734ddafcd 100644 --- a/plugins/catalog-backend-module-aws/src/module/index.ts +++ b/plugins/catalog-backend-module-aws/src/module/index.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export { catalogModuleAwsS3EntityProvider } from './catalogModuleAwsS3EntityProvider'; +export { catalogModuleAwsS3EntityProvider as default } from './catalogModuleAwsS3EntityProvider'; diff --git a/plugins/catalog-backend-module-azure/alpha-api-report.md b/plugins/catalog-backend-module-azure/alpha-api-report.md index 66551a2856..eeb5a3c621 100644 --- a/plugins/catalog-backend-module-azure/alpha-api-report.md +++ b/plugins/catalog-backend-module-azure/alpha-api-report.md @@ -6,7 +6,8 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; // @alpha -export const catalogModuleAzureDevOpsEntityProvider: () => BackendFeature; +const catalogModuleAzureDevOpsEntityProvider: () => BackendFeature; +export default catalogModuleAzureDevOpsEntityProvider; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/catalog-backend-module-azure/src/alpha.ts b/plugins/catalog-backend-module-azure/src/alpha.ts index c277a0a680..01a9b25f7c 100644 --- a/plugins/catalog-backend-module-azure/src/alpha.ts +++ b/plugins/catalog-backend-module-azure/src/alpha.ts @@ -15,3 +15,4 @@ */ export * from './module'; +export { default } from './module'; diff --git a/plugins/catalog-backend-module-azure/src/module/index.ts b/plugins/catalog-backend-module-azure/src/module/index.ts index cfa8c78548..329ad604e2 100644 --- a/plugins/catalog-backend-module-azure/src/module/index.ts +++ b/plugins/catalog-backend-module-azure/src/module/index.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export { catalogModuleAzureDevOpsEntityProvider } from './catalogModuleAzureDevOpsEntityProvider'; +export { catalogModuleAzureDevOpsEntityProvider as default } from './catalogModuleAzureDevOpsEntityProvider'; diff --git a/plugins/catalog-backend-module-bitbucket-cloud/alpha-api-report.md b/plugins/catalog-backend-module-bitbucket-cloud/alpha-api-report.md index a5d0ffc665..69b2b46e4e 100644 --- a/plugins/catalog-backend-module-bitbucket-cloud/alpha-api-report.md +++ b/plugins/catalog-backend-module-bitbucket-cloud/alpha-api-report.md @@ -6,7 +6,8 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; // @alpha (undocumented) -export const catalogModuleBitbucketCloudEntityProvider: () => BackendFeature; +const catalogModuleBitbucketCloudEntityProvider: () => BackendFeature; +export default catalogModuleBitbucketCloudEntityProvider; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/catalog-backend-module-bitbucket-cloud/src/alpha.ts b/plugins/catalog-backend-module-bitbucket-cloud/src/alpha.ts index c277a0a680..01a9b25f7c 100644 --- a/plugins/catalog-backend-module-bitbucket-cloud/src/alpha.ts +++ b/plugins/catalog-backend-module-bitbucket-cloud/src/alpha.ts @@ -15,3 +15,4 @@ */ export * from './module'; +export { default } from './module'; diff --git a/plugins/catalog-backend-module-bitbucket-cloud/src/module/index.ts b/plugins/catalog-backend-module-bitbucket-cloud/src/module/index.ts index f9654971be..22a777ea49 100644 --- a/plugins/catalog-backend-module-bitbucket-cloud/src/module/index.ts +++ b/plugins/catalog-backend-module-bitbucket-cloud/src/module/index.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export { catalogModuleBitbucketCloudEntityProvider } from './catalogModuleBitbucketCloudEntityProvider'; +export { catalogModuleBitbucketCloudEntityProvider as default } from './catalogModuleBitbucketCloudEntityProvider'; diff --git a/plugins/catalog-backend-module-bitbucket-server/alpha-api-report.md b/plugins/catalog-backend-module-bitbucket-server/alpha-api-report.md index 2cc53a3c16..5e5b4f68cd 100644 --- a/plugins/catalog-backend-module-bitbucket-server/alpha-api-report.md +++ b/plugins/catalog-backend-module-bitbucket-server/alpha-api-report.md @@ -6,7 +6,8 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; // @alpha (undocumented) -export const catalogModuleBitbucketServerEntityProvider: () => BackendFeature; +const catalogModuleBitbucketServerEntityProvider: () => BackendFeature; +export default catalogModuleBitbucketServerEntityProvider; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/catalog-backend-module-bitbucket-server/src/alpha.ts b/plugins/catalog-backend-module-bitbucket-server/src/alpha.ts index c277a0a680..01a9b25f7c 100644 --- a/plugins/catalog-backend-module-bitbucket-server/src/alpha.ts +++ b/plugins/catalog-backend-module-bitbucket-server/src/alpha.ts @@ -15,3 +15,4 @@ */ export * from './module'; +export { default } from './module'; diff --git a/plugins/catalog-backend-module-bitbucket-server/src/module/index.ts b/plugins/catalog-backend-module-bitbucket-server/src/module/index.ts index 160f099ae0..033556f566 100644 --- a/plugins/catalog-backend-module-bitbucket-server/src/module/index.ts +++ b/plugins/catalog-backend-module-bitbucket-server/src/module/index.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export { catalogModuleBitbucketServerEntityProvider } from './catalogModuleBitbucketServerEntityProvider'; +export { catalogModuleBitbucketServerEntityProvider as default } from './catalogModuleBitbucketServerEntityProvider'; diff --git a/plugins/catalog-backend-module-gcp/api-report.md b/plugins/catalog-backend-module-gcp/api-report.md index 6f963ed51d..b20b9c8363 100644 --- a/plugins/catalog-backend-module-gcp/api-report.md +++ b/plugins/catalog-backend-module-gcp/api-report.md @@ -12,7 +12,8 @@ import { Logger } from 'winston'; import { SchedulerService } from '@backstage/backend-plugin-api'; // @public -export const catalogModuleGcpGkeEntityProvider: () => BackendFeature; +const catalogModuleGcpGkeEntityProvider: () => BackendFeature; +export default catalogModuleGcpGkeEntityProvider; // @public export class GkeEntityProvider implements EntityProvider { diff --git a/plugins/catalog-backend-module-gcp/src/index.ts b/plugins/catalog-backend-module-gcp/src/index.ts index fb3984a04d..1666fde7e0 100644 --- a/plugins/catalog-backend-module-gcp/src/index.ts +++ b/plugins/catalog-backend-module-gcp/src/index.ts @@ -22,3 +22,4 @@ export * from './providers'; export * from './module'; +export { default } from './module'; diff --git a/plugins/catalog-backend-module-gcp/src/module/index.ts b/plugins/catalog-backend-module-gcp/src/module/index.ts index c7cd310c97..b51790cbb8 100644 --- a/plugins/catalog-backend-module-gcp/src/module/index.ts +++ b/plugins/catalog-backend-module-gcp/src/module/index.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export { catalogModuleGcpGkeEntityProvider } from './catalogModuleGcpGkeEntityProvider'; +export { catalogModuleGcpGkeEntityProvider as default } from './catalogModuleGcpGkeEntityProvider'; diff --git a/plugins/catalog-backend-module-gerrit/alpha-api-report.md b/plugins/catalog-backend-module-gerrit/alpha-api-report.md index 5aee61f28a..dd6c61c5ab 100644 --- a/plugins/catalog-backend-module-gerrit/alpha-api-report.md +++ b/plugins/catalog-backend-module-gerrit/alpha-api-report.md @@ -6,7 +6,8 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; // @alpha (undocumented) -export const catalogModuleGerritEntityProvider: () => BackendFeature; +const catalogModuleGerritEntityProvider: () => BackendFeature; +export default catalogModuleGerritEntityProvider; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/catalog-backend-module-gerrit/src/alpha.ts b/plugins/catalog-backend-module-gerrit/src/alpha.ts index c277a0a680..01a9b25f7c 100644 --- a/plugins/catalog-backend-module-gerrit/src/alpha.ts +++ b/plugins/catalog-backend-module-gerrit/src/alpha.ts @@ -15,3 +15,4 @@ */ export * from './module'; +export { default } from './module'; diff --git a/plugins/catalog-backend-module-gerrit/src/module/index.ts b/plugins/catalog-backend-module-gerrit/src/module/index.ts index 95760538e7..10dd6b4475 100644 --- a/plugins/catalog-backend-module-gerrit/src/module/index.ts +++ b/plugins/catalog-backend-module-gerrit/src/module/index.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export { catalogModuleGerritEntityProvider } from './catalogModuleGerritEntityProvider'; +export { catalogModuleGerritEntityProvider as default } from './catalogModuleGerritEntityProvider'; diff --git a/plugins/catalog-backend-module-github/alpha-api-report.md b/plugins/catalog-backend-module-github/alpha-api-report.md index bf89a57192..3bf72c449b 100644 --- a/plugins/catalog-backend-module-github/alpha-api-report.md +++ b/plugins/catalog-backend-module-github/alpha-api-report.md @@ -9,7 +9,8 @@ import { TeamTransformer } from '@backstage/plugin-catalog-backend-module-github import { UserTransformer } from '@backstage/plugin-catalog-backend-module-github'; // @alpha -export const catalogModuleGithubEntityProvider: () => BackendFeature; +const catalogModuleGithubEntityProvider: () => BackendFeature; +export default catalogModuleGithubEntityProvider; // @alpha export const catalogModuleGithubOrgEntityProvider: () => BackendFeature; diff --git a/plugins/catalog-backend-module-github/src/alpha.ts b/plugins/catalog-backend-module-github/src/alpha.ts index c277a0a680..01a9b25f7c 100644 --- a/plugins/catalog-backend-module-github/src/alpha.ts +++ b/plugins/catalog-backend-module-github/src/alpha.ts @@ -15,3 +15,4 @@ */ export * from './module'; +export { default } from './module'; diff --git a/plugins/catalog-backend-module-github/src/module/index.ts b/plugins/catalog-backend-module-github/src/module/index.ts index ace488c054..7e8a214ca3 100644 --- a/plugins/catalog-backend-module-github/src/module/index.ts +++ b/plugins/catalog-backend-module-github/src/module/index.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -export { catalogModuleGithubEntityProvider } from './catalogModuleGithubEntityProvider'; +export { catalogModuleGithubEntityProvider as default } from './catalogModuleGithubEntityProvider'; export { catalogModuleGithubOrgEntityProvider, githubOrgEntityProviderTransformsExtensionPoint, diff --git a/plugins/catalog-backend-module-gitlab/alpha-api-report.md b/plugins/catalog-backend-module-gitlab/alpha-api-report.md index f14b41d6c5..bb466a632e 100644 --- a/plugins/catalog-backend-module-gitlab/alpha-api-report.md +++ b/plugins/catalog-backend-module-gitlab/alpha-api-report.md @@ -6,7 +6,8 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; // @alpha -export const catalogModuleGitlabDiscoveryEntityProvider: () => BackendFeature; +const catalogModuleGitlabDiscoveryEntityProvider: () => BackendFeature; +export default catalogModuleGitlabDiscoveryEntityProvider; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/catalog-backend-module-gitlab/src/alpha.ts b/plugins/catalog-backend-module-gitlab/src/alpha.ts index ace970e3aa..65f5b05b49 100644 --- a/plugins/catalog-backend-module-gitlab/src/alpha.ts +++ b/plugins/catalog-backend-module-gitlab/src/alpha.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export { catalogModuleGitlabDiscoveryEntityProvider } from './module/catalogModuleGitlabDiscoveryEntityProvider'; +export { catalogModuleGitlabDiscoveryEntityProvider as default } from './module/catalogModuleGitlabDiscoveryEntityProvider'; diff --git a/plugins/catalog-backend-module-incremental-ingestion/alpha-api-report.md b/plugins/catalog-backend-module-incremental-ingestion/alpha-api-report.md index 995c6e4893..6ab775f25b 100644 --- a/plugins/catalog-backend-module-incremental-ingestion/alpha-api-report.md +++ b/plugins/catalog-backend-module-incremental-ingestion/alpha-api-report.md @@ -9,7 +9,8 @@ import { IncrementalEntityProvider } from '@backstage/plugin-catalog-backend-mod import { IncrementalEntityProviderOptions } from '@backstage/plugin-catalog-backend-module-incremental-ingestion'; // @alpha -export const catalogModuleIncrementalIngestionEntityProvider: () => BackendFeature; +const catalogModuleIncrementalIngestionEntityProvider: () => BackendFeature; +export default catalogModuleIncrementalIngestionEntityProvider; // @alpha export interface IncrementalIngestionProviderExtensionPoint { diff --git a/plugins/catalog-backend-module-incremental-ingestion/src/alpha.ts b/plugins/catalog-backend-module-incremental-ingestion/src/alpha.ts index c277a0a680..01a9b25f7c 100644 --- a/plugins/catalog-backend-module-incremental-ingestion/src/alpha.ts +++ b/plugins/catalog-backend-module-incremental-ingestion/src/alpha.ts @@ -15,3 +15,4 @@ */ export * from './module'; +export { default } from './module'; diff --git a/plugins/catalog-backend-module-incremental-ingestion/src/module/index.ts b/plugins/catalog-backend-module-incremental-ingestion/src/module/index.ts index 37ecf60f7c..8a395f06fe 100644 --- a/plugins/catalog-backend-module-incremental-ingestion/src/module/index.ts +++ b/plugins/catalog-backend-module-incremental-ingestion/src/module/index.ts @@ -15,7 +15,7 @@ */ export { - catalogModuleIncrementalIngestionEntityProvider, + catalogModuleIncrementalIngestionEntityProvider as default, incrementalIngestionProvidersExtensionPoint, type IncrementalIngestionProviderExtensionPoint, } from './catalogModuleIncrementalIngestionEntityProvider'; diff --git a/plugins/catalog-backend-module-incremental-ingestion/src/run.ts b/plugins/catalog-backend-module-incremental-ingestion/src/run.ts index cfb4c20def..c24deb6adb 100644 --- a/plugins/catalog-backend-module-incremental-ingestion/src/run.ts +++ b/plugins/catalog-backend-module-incremental-ingestion/src/run.ts @@ -24,10 +24,8 @@ import { createServiceFactory, } from '@backstage/backend-plugin-api'; import { ConfigReader } from '@backstage/config'; -import { catalogPlugin } from '@backstage/plugin-catalog-backend/alpha'; import { IncrementalEntityProvider } from '.'; -import { - catalogModuleIncrementalIngestionEntityProvider, +import catalogModuleIncrementalIngestionEntityProvider, { incrementalIngestionProvidersExtensionPoint, } from './alpha'; @@ -64,7 +62,7 @@ async function main() { factory: () => new ConfigReader(config), }), ); - backend.add(catalogPlugin()); + backend.add(import('@backstage/plugin-catalog-backend/alpha')); backend.add(catalogModuleIncrementalIngestionEntityProvider()); backend.add( createBackendModule({ diff --git a/plugins/catalog-backend-module-msgraph/alpha-api-report.md b/plugins/catalog-backend-module-msgraph/alpha-api-report.md index 6d877ba713..b9c96e7798 100644 --- a/plugins/catalog-backend-module-msgraph/alpha-api-report.md +++ b/plugins/catalog-backend-module-msgraph/alpha-api-report.md @@ -10,7 +10,8 @@ import { OrganizationTransformer } from '@backstage/plugin-catalog-backend-modul import { UserTransformer } from '@backstage/plugin-catalog-backend-module-msgraph'; // @alpha -export const catalogModuleMicrosoftGraphOrgEntityProvider: () => BackendFeature; +const catalogModuleMicrosoftGraphOrgEntityProvider: () => BackendFeature; +export default catalogModuleMicrosoftGraphOrgEntityProvider; // @alpha export const microsoftGraphOrgEntityProviderTransformExtensionPoint: ExtensionPoint; diff --git a/plugins/catalog-backend-module-msgraph/src/alpha.ts b/plugins/catalog-backend-module-msgraph/src/alpha.ts index c277a0a680..01a9b25f7c 100644 --- a/plugins/catalog-backend-module-msgraph/src/alpha.ts +++ b/plugins/catalog-backend-module-msgraph/src/alpha.ts @@ -15,3 +15,4 @@ */ export * from './module'; +export { default } from './module'; diff --git a/plugins/catalog-backend-module-msgraph/src/module/catalogModuleMicrosoftGraphOrgEntityProvider.ts b/plugins/catalog-backend-module-msgraph/src/module/catalogModuleMicrosoftGraphOrgEntityProvider.ts index b0d22ab0f4..f13081d3c6 100644 --- a/plugins/catalog-backend-module-msgraph/src/module/catalogModuleMicrosoftGraphOrgEntityProvider.ts +++ b/plugins/catalog-backend-module-msgraph/src/module/catalogModuleMicrosoftGraphOrgEntityProvider.ts @@ -62,7 +62,7 @@ export interface MicrosoftGraphOrgEntityProviderTransformsExtensionPoint { } /** - * Extension point used to customize the transforms used by the {@link catalogModuleMicrosoftGraphOrgEntityProvider}. + * Extension point used to customize the transforms used by the module. * * @alpha */ diff --git a/plugins/catalog-backend-module-msgraph/src/module/index.ts b/plugins/catalog-backend-module-msgraph/src/module/index.ts index ef45c6a135..9b92588297 100644 --- a/plugins/catalog-backend-module-msgraph/src/module/index.ts +++ b/plugins/catalog-backend-module-msgraph/src/module/index.ts @@ -15,7 +15,7 @@ */ export { - catalogModuleMicrosoftGraphOrgEntityProvider, + catalogModuleMicrosoftGraphOrgEntityProvider as default, microsoftGraphOrgEntityProviderTransformExtensionPoint, type MicrosoftGraphOrgEntityProviderTransformsExtensionPoint, } from './catalogModuleMicrosoftGraphOrgEntityProvider'; diff --git a/plugins/catalog-backend-module-puppetdb/alpha-api-report.md b/plugins/catalog-backend-module-puppetdb/alpha-api-report.md index 0856fdb836..2f3921012a 100644 --- a/plugins/catalog-backend-module-puppetdb/alpha-api-report.md +++ b/plugins/catalog-backend-module-puppetdb/alpha-api-report.md @@ -6,7 +6,8 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; // @alpha -export const catalogModulePuppetDbEntityProvider: () => BackendFeature; +const catalogModulePuppetDbEntityProvider: () => BackendFeature; +export default catalogModulePuppetDbEntityProvider; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/catalog-backend-module-puppetdb/src/alpha.ts b/plugins/catalog-backend-module-puppetdb/src/alpha.ts index c277a0a680..01a9b25f7c 100644 --- a/plugins/catalog-backend-module-puppetdb/src/alpha.ts +++ b/plugins/catalog-backend-module-puppetdb/src/alpha.ts @@ -15,3 +15,4 @@ */ export * from './module'; +export { default } from './module'; diff --git a/plugins/catalog-backend-module-puppetdb/src/module/index.ts b/plugins/catalog-backend-module-puppetdb/src/module/index.ts index f30f236df4..21dc43561d 100644 --- a/plugins/catalog-backend-module-puppetdb/src/module/index.ts +++ b/plugins/catalog-backend-module-puppetdb/src/module/index.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export { catalogModulePuppetDbEntityProvider } from './catalogModulePuppetDbEntityProvider'; +export { catalogModulePuppetDbEntityProvider as default } from './catalogModulePuppetDbEntityProvider'; diff --git a/plugins/catalog-backend-module-unprocessed/api-report.md b/plugins/catalog-backend-module-unprocessed/api-report.md index 7fd7119276..6e5e4f843b 100644 --- a/plugins/catalog-backend-module-unprocessed/api-report.md +++ b/plugins/catalog-backend-module-unprocessed/api-report.md @@ -8,7 +8,8 @@ import { HttpRouterService } from '@backstage/backend-plugin-api'; import { Knex } from 'knex'; // @public -export const catalogModuleUnprocessedEntities: () => BackendFeature; +const catalogModuleUnprocessedEntities: () => BackendFeature; +export default catalogModuleUnprocessedEntities; // @public export class UnprocessedEntitiesModule { diff --git a/plugins/catalog-backend-module-unprocessed/src/index.ts b/plugins/catalog-backend-module-unprocessed/src/index.ts index 21cb2dbcd6..20132d9b27 100644 --- a/plugins/catalog-backend-module-unprocessed/src/index.ts +++ b/plugins/catalog-backend-module-unprocessed/src/index.ts @@ -20,5 +20,5 @@ * @packageDocumentation */ -export * from './module'; +export { catalogModuleUnprocessedEntities as default } from './module'; export * from './UnprocessedEntitiesModule'; diff --git a/plugins/catalog-backend/alpha-api-report.md b/plugins/catalog-backend/alpha-api-report.md index df3e809ade..ff826508b2 100644 --- a/plugins/catalog-backend/alpha-api-report.md +++ b/plugins/catalog-backend/alpha-api-report.md @@ -74,7 +74,8 @@ export type CatalogPermissionRule< > = PermissionRule; // @alpha -export const catalogPlugin: () => BackendFeature; +const catalogPlugin: () => BackendFeature; +export default catalogPlugin; // @alpha export const createCatalogConditionalDecision: ( diff --git a/plugins/catalog-backend/src/alpha.ts b/plugins/catalog-backend/src/alpha.ts index c90f4d1cdf..06c9571bfa 100644 --- a/plugins/catalog-backend/src/alpha.ts +++ b/plugins/catalog-backend/src/alpha.ts @@ -21,4 +21,4 @@ import type { EntitiesSearchFilter } from './catalog/types'; export type { /** @alpha */ EntitiesSearchFilter }; export * from './permissions'; -export { catalogPlugin } from './service/CatalogPlugin'; +export { catalogPlugin as default } from './service/CatalogPlugin'; diff --git a/plugins/catalog-backend/src/tests/performance/stitchingPerformance.test.ts b/plugins/catalog-backend/src/tests/performance/stitchingPerformance.test.ts index fb2bd06b96..e60c0a33d6 100644 --- a/plugins/catalog-backend/src/tests/performance/stitchingPerformance.test.ts +++ b/plugins/catalog-backend/src/tests/performance/stitchingPerformance.test.ts @@ -20,7 +20,6 @@ import { createServiceFactory, } from '@backstage/backend-plugin-api'; import { TestDatabases, startTestBackend } from '@backstage/backend-test-utils'; -import { catalogPlugin } from '@backstage/plugin-catalog-backend/alpha'; import { catalogProcessingExtensionPoint } from '@backstage/plugin-catalog-node/alpha'; import { Knex } from 'knex'; import { applyDatabaseMigrations } from '../../database/migrations'; @@ -181,7 +180,7 @@ describePerformanceTest('stitchingPerformance', () => { const backend = await startTestBackend({ features: [ - catalogPlugin(), + import('@backstage/plugin-catalog-backend/alpha'), createBackendModule({ moduleId: 'syntheticLoadEntities', pluginId: 'catalog', diff --git a/plugins/devtools-backend/api-report.md b/plugins/devtools-backend/api-report.md index dc51fc8387..b9eb7b5a0c 100644 --- a/plugins/devtools-backend/api-report.md +++ b/plugins/devtools-backend/api-report.md @@ -27,7 +27,8 @@ export class DevToolsBackendApi { } // @public -export const devtoolsPlugin: () => BackendFeature; +const devtoolsPlugin: () => BackendFeature; +export default devtoolsPlugin; // @public (undocumented) export interface RouterOptions { diff --git a/plugins/devtools-backend/src/index.ts b/plugins/devtools-backend/src/index.ts index 57c1739c34..58d4570163 100644 --- a/plugins/devtools-backend/src/index.ts +++ b/plugins/devtools-backend/src/index.ts @@ -22,4 +22,4 @@ export { DevToolsBackendApi } from './api'; export * from './service/router'; -export { devtoolsPlugin } from './plugin'; +export { devtoolsPlugin as default } from './plugin'; diff --git a/plugins/entity-feedback-backend/api-report.md b/plugins/entity-feedback-backend/api-report.md index 3e8f90220e..1ec466e256 100644 --- a/plugins/entity-feedback-backend/api-report.md +++ b/plugins/entity-feedback-backend/api-report.md @@ -14,7 +14,8 @@ import { PluginEndpointDiscovery } from '@backstage/backend-common'; export function createRouter(options: RouterOptions): Promise; // @public -export const entityFeedbackPlugin: () => BackendFeature; +const entityFeedbackPlugin: () => BackendFeature; +export default entityFeedbackPlugin; // @public (undocumented) export interface RouterOptions { diff --git a/plugins/entity-feedback-backend/src/index.ts b/plugins/entity-feedback-backend/src/index.ts index 74e545de04..47215ebd7a 100644 --- a/plugins/entity-feedback-backend/src/index.ts +++ b/plugins/entity-feedback-backend/src/index.ts @@ -20,4 +20,4 @@ * @packageDocumentation */ export * from './service/router'; -export { entityFeedbackPlugin } from './plugin'; +export { entityFeedbackPlugin as default } from './plugin'; diff --git a/plugins/events-backend-module-aws-sqs/alpha-api-report.md b/plugins/events-backend-module-aws-sqs/alpha-api-report.md index e48515a414..4faed2a162 100644 --- a/plugins/events-backend-module-aws-sqs/alpha-api-report.md +++ b/plugins/events-backend-module-aws-sqs/alpha-api-report.md @@ -6,7 +6,8 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; // @alpha -export const eventsModuleAwsSqsConsumingEventPublisher: () => BackendFeature; +const eventsModuleAwsSqsConsumingEventPublisher: () => BackendFeature; +export default eventsModuleAwsSqsConsumingEventPublisher; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/events-backend-module-aws-sqs/src/alpha.ts b/plugins/events-backend-module-aws-sqs/src/alpha.ts index 4f3ae09c42..3107411645 100644 --- a/plugins/events-backend-module-aws-sqs/src/alpha.ts +++ b/plugins/events-backend-module-aws-sqs/src/alpha.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export { eventsModuleAwsSqsConsumingEventPublisher } from './service/eventsModuleAwsSqsConsumingEventPublisher'; +export { eventsModuleAwsSqsConsumingEventPublisher as default } from './service/eventsModuleAwsSqsConsumingEventPublisher'; diff --git a/plugins/events-backend/alpha-api-report.md b/plugins/events-backend/alpha-api-report.md index 3e32f769c1..b9475b3133 100644 --- a/plugins/events-backend/alpha-api-report.md +++ b/plugins/events-backend/alpha-api-report.md @@ -6,7 +6,8 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; // @alpha -export const eventsPlugin: () => BackendFeature; +const eventsPlugin: () => BackendFeature; +export default eventsPlugin; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/events-backend/src/alpha.ts b/plugins/events-backend/src/alpha.ts index 4403da1636..2d40694987 100644 --- a/plugins/events-backend/src/alpha.ts +++ b/plugins/events-backend/src/alpha.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export { eventsPlugin } from './service/EventsPlugin'; +export { eventsPlugin as default } from './service/EventsPlugin'; diff --git a/plugins/example-todo-list-backend/api-report.md b/plugins/example-todo-list-backend/api-report.md index 319fbbf226..d78f5e0796 100644 --- a/plugins/example-todo-list-backend/api-report.md +++ b/plugins/example-todo-list-backend/api-report.md @@ -12,7 +12,8 @@ import { Logger } from 'winston'; export function createRouter(options: RouterOptions): Promise; // @alpha -export const exampleTodoListPlugin: () => BackendFeature; +const exampleTodoListPlugin: () => BackendFeature; +export default exampleTodoListPlugin; // @public export interface RouterOptions { diff --git a/plugins/example-todo-list-backend/src/index.ts b/plugins/example-todo-list-backend/src/index.ts index 6917307db6..156e44f70e 100644 --- a/plugins/example-todo-list-backend/src/index.ts +++ b/plugins/example-todo-list-backend/src/index.ts @@ -15,4 +15,4 @@ */ export * from './service/router'; -export { exampleTodoListPlugin } from './plugin'; +export { exampleTodoListPlugin as default } from './plugin'; diff --git a/plugins/kafka-backend/api-report.md b/plugins/kafka-backend/api-report.md index a748a543d9..b03bad12e5 100644 --- a/plugins/kafka-backend/api-report.md +++ b/plugins/kafka-backend/api-report.md @@ -12,7 +12,8 @@ import { Logger } from 'winston'; export function createRouter(options: RouterOptions): Promise; // @alpha -export const kafkaPlugin: () => BackendFeature; +const kafkaPlugin: () => BackendFeature; +export default kafkaPlugin; // @public (undocumented) export interface RouterOptions { diff --git a/plugins/kafka-backend/src/index.ts b/plugins/kafka-backend/src/index.ts index 2000c8b89a..d87d313941 100644 --- a/plugins/kafka-backend/src/index.ts +++ b/plugins/kafka-backend/src/index.ts @@ -22,4 +22,4 @@ export type { RouterOptions } from './service/router'; export { createRouter } from './service/router'; -export { kafkaPlugin } from './plugin'; +export { kafkaPlugin as default } from './plugin'; diff --git a/plugins/kubernetes-backend/alpha-api-report.md b/plugins/kubernetes-backend/alpha-api-report.md index f95c1414f3..f6eeec5b4c 100644 --- a/plugins/kubernetes-backend/alpha-api-report.md +++ b/plugins/kubernetes-backend/alpha-api-report.md @@ -6,7 +6,8 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; // @alpha -export const kubernetesPlugin: () => BackendFeature; +const kubernetesPlugin: () => BackendFeature; +export default kubernetesPlugin; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/kubernetes-backend/src/alpha.ts b/plugins/kubernetes-backend/src/alpha.ts index 3041a5682c..9171964f7c 100644 --- a/plugins/kubernetes-backend/src/alpha.ts +++ b/plugins/kubernetes-backend/src/alpha.ts @@ -13,4 +13,4 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export { kubernetesPlugin } from './plugin'; +export { kubernetesPlugin as default } from './plugin'; diff --git a/plugins/lighthouse-backend/api-report.md b/plugins/lighthouse-backend/api-report.md index 5d9d948cf4..d382e40def 100644 --- a/plugins/lighthouse-backend/api-report.md +++ b/plugins/lighthouse-backend/api-report.md @@ -30,7 +30,8 @@ export function createScheduler( ): Promise; // @public -export const lighthousePlugin: () => BackendFeature; +const lighthousePlugin: () => BackendFeature; +export default lighthousePlugin; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/lighthouse-backend/src/index.ts b/plugins/lighthouse-backend/src/index.ts index 5773beed56..5d2bff7ed6 100644 --- a/plugins/lighthouse-backend/src/index.ts +++ b/plugins/lighthouse-backend/src/index.ts @@ -15,4 +15,4 @@ */ export * from './service/createScheduler'; -export { lighthousePlugin } from './plugin'; +export { lighthousePlugin as default } from './plugin'; diff --git a/plugins/linguist-backend/api-report.md b/plugins/linguist-backend/api-report.md index 4edd939058..95bdc858ee 100644 --- a/plugins/linguist-backend/api-report.md +++ b/plugins/linguist-backend/api-report.md @@ -41,7 +41,8 @@ export interface LinguistBackendApi { } // @public -export const linguistPlugin: () => BackendFeature; +const linguistPlugin: () => BackendFeature; +export default linguistPlugin; // @public export class LinguistTagsProcessor implements CatalogProcessor { diff --git a/plugins/linguist-backend/src/index.ts b/plugins/linguist-backend/src/index.ts index 64016d0d07..df4703bed3 100644 --- a/plugins/linguist-backend/src/index.ts +++ b/plugins/linguist-backend/src/index.ts @@ -23,4 +23,4 @@ export * from './processor'; export * from './service/router'; export type { LinguistBackendApi } from './api'; -export { linguistPlugin } from './plugin'; +export { linguistPlugin as default } from './plugin'; diff --git a/plugins/periskop-backend/api-report.md b/plugins/periskop-backend/api-report.md index 7906bc4785..46d5de8d93 100644 --- a/plugins/periskop-backend/api-report.md +++ b/plugins/periskop-backend/api-report.md @@ -12,7 +12,8 @@ import { Logger } from 'winston'; export function createRouter(options: RouterOptions): Promise; // @alpha -export const periskopPlugin: () => BackendFeature; +const periskopPlugin: () => BackendFeature; +export default periskopPlugin; // @public (undocumented) export interface RouterOptions { diff --git a/plugins/periskop-backend/src/index.ts b/plugins/periskop-backend/src/index.ts index a053633745..17a6d0d054 100644 --- a/plugins/periskop-backend/src/index.ts +++ b/plugins/periskop-backend/src/index.ts @@ -15,4 +15,4 @@ */ export * from './service/router'; -export { periskopPlugin } from './plugin'; +export { periskopPlugin as default } from './plugin'; diff --git a/plugins/permission-backend-module-policy-allow-all/api-report.md b/plugins/permission-backend-module-policy-allow-all/api-report.md index a965e9fa54..081655578d 100644 --- a/plugins/permission-backend-module-policy-allow-all/api-report.md +++ b/plugins/permission-backend-module-policy-allow-all/api-report.md @@ -6,5 +6,6 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; // @public -export const permissionModuleAllowAllPolicy: () => BackendFeature; +const permissionModuleAllowAllPolicy: () => BackendFeature; +export default permissionModuleAllowAllPolicy; ``` diff --git a/plugins/permission-backend-module-policy-allow-all/src/index.ts b/plugins/permission-backend-module-policy-allow-all/src/index.ts index f2e9b46bb5..49fefc99db 100644 --- a/plugins/permission-backend-module-policy-allow-all/src/index.ts +++ b/plugins/permission-backend-module-policy-allow-all/src/index.ts @@ -20,4 +20,4 @@ * @packageDocumentation */ -export { permissionModuleAllowAllPolicy } from './module'; +export { permissionModuleAllowAllPolicy as default } from './module'; diff --git a/plugins/permission-backend/alpha-api-report.md b/plugins/permission-backend/alpha-api-report.md index 2397ccd9c9..acface76a4 100644 --- a/plugins/permission-backend/alpha-api-report.md +++ b/plugins/permission-backend/alpha-api-report.md @@ -6,7 +6,8 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; // @alpha -export const permissionPlugin: () => BackendFeature; +const permissionPlugin: () => BackendFeature; +export default permissionPlugin; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/permission-backend/src/alpha.ts b/plugins/permission-backend/src/alpha.ts index 5958a52926..c0283c6fd0 100644 --- a/plugins/permission-backend/src/alpha.ts +++ b/plugins/permission-backend/src/alpha.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export { permissionPlugin } from './plugin'; +export { permissionPlugin as default } from './plugin'; diff --git a/plugins/proxy-backend/api-report.md b/plugins/proxy-backend/api-report.md index 9c5cf5f9ef..ae327d485a 100644 --- a/plugins/proxy-backend/api-report.md +++ b/plugins/proxy-backend/api-report.md @@ -13,7 +13,8 @@ import { PluginEndpointDiscovery } from '@backstage/backend-common'; export function createRouter(options: RouterOptions): Promise; // @alpha -export const proxyPlugin: () => BackendFeature; +const proxyPlugin: () => BackendFeature; +export default proxyPlugin; // @public (undocumented) export interface RouterOptions { diff --git a/plugins/proxy-backend/src/index.ts b/plugins/proxy-backend/src/index.ts index 2658a557b7..3163abd381 100644 --- a/plugins/proxy-backend/src/index.ts +++ b/plugins/proxy-backend/src/index.ts @@ -21,4 +21,4 @@ */ export * from './service'; -export { proxyPlugin } from './plugin'; +export { proxyPlugin as default } from './plugin'; diff --git a/plugins/scaffolder-backend/alpha-api-report.md b/plugins/scaffolder-backend/alpha-api-report.md index c1758f9b17..20def133ad 100644 --- a/plugins/scaffolder-backend/alpha-api-report.md +++ b/plugins/scaffolder-backend/alpha-api-report.md @@ -86,7 +86,8 @@ export const scaffolderActionConditions: Conditions<{ }>; // @alpha -export const scaffolderPlugin: () => BackendFeature; +const scaffolderPlugin: () => BackendFeature; +export default scaffolderPlugin; // @alpha export const scaffolderTemplateConditions: Conditions<{ diff --git a/plugins/scaffolder-backend/src/alpha.ts b/plugins/scaffolder-backend/src/alpha.ts index e1b4bc1067..07228fab88 100644 --- a/plugins/scaffolder-backend/src/alpha.ts +++ b/plugins/scaffolder-backend/src/alpha.ts @@ -16,4 +16,4 @@ export * from './modules'; export * from './service'; -export { scaffolderPlugin } from './ScaffolderPlugin'; +export { scaffolderPlugin as default } from './ScaffolderPlugin'; diff --git a/plugins/search-backend-module-catalog/alpha-api-report.md b/plugins/search-backend-module-catalog/alpha-api-report.md index 658c1aec15..f840884f68 100644 --- a/plugins/search-backend-module-catalog/alpha-api-report.md +++ b/plugins/search-backend-module-catalog/alpha-api-report.md @@ -16,7 +16,8 @@ export type CatalogCollatorExtensionPoint = { export const catalogCollatorExtensionPoint: ExtensionPoint; // @alpha -export const searchModuleCatalogCollator: () => BackendFeature; +const _default: () => BackendFeature; +export default _default; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/search-backend-module-catalog/src/alpha.test.ts b/plugins/search-backend-module-catalog/src/alpha.test.ts index 33ac978d41..eb2a795ecc 100644 --- a/plugins/search-backend-module-catalog/src/alpha.test.ts +++ b/plugins/search-backend-module-catalog/src/alpha.test.ts @@ -16,7 +16,7 @@ import { mockServices, startTestBackend } from '@backstage/backend-test-utils'; import { searchIndexRegistryExtensionPoint } from '@backstage/plugin-search-backend-node/alpha'; -import { searchModuleCatalogCollator } from './alpha'; +import searchModuleCatalogCollator from './alpha'; describe('searchModuleCatalogCollator', () => { it('should register the catalog collator to the search index registry extension point with factory and schedule', async () => { diff --git a/plugins/search-backend-module-catalog/src/alpha.ts b/plugins/search-backend-module-catalog/src/alpha.ts index 0edf90fc7f..5813bb235e 100644 --- a/plugins/search-backend-module-catalog/src/alpha.ts +++ b/plugins/search-backend-module-catalog/src/alpha.ts @@ -46,8 +46,7 @@ export type CatalogCollatorExtensionPoint = { /** * Extension point for customizing how catalog entities are shaped into - * documents for the search backend, when using - * {@link searchModuleCatalogCollator}. + * documents for the search backend. * * @alpha */ @@ -61,7 +60,7 @@ export const catalogCollatorExtensionPoint = * * @alpha */ -export const searchModuleCatalogCollator = createBackendModule({ +export default createBackendModule({ moduleId: 'catalogCollator', pluginId: 'search', register(env) { diff --git a/plugins/search-backend-module-elasticsearch/alpha-api-report.md b/plugins/search-backend-module-elasticsearch/alpha-api-report.md index 9e5e7c2136..c0c30f7f2b 100644 --- a/plugins/search-backend-module-elasticsearch/alpha-api-report.md +++ b/plugins/search-backend-module-elasticsearch/alpha-api-report.md @@ -7,6 +7,10 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; import { ElasticSearchQueryTranslator } from '@backstage/plugin-search-backend-module-elasticsearch'; import { ExtensionPoint } from '@backstage/backend-plugin-api'; +// @alpha +const _default: () => BackendFeature; +export default _default; + // @alpha (undocumented) export interface ElasticSearchQueryTranslatorExtensionPoint { // (undocumented) @@ -16,8 +20,5 @@ export interface ElasticSearchQueryTranslatorExtensionPoint { // @alpha export const elasticsearchTranslatorExtensionPoint: ExtensionPoint; -// @alpha -export const searchModuleElasticsearchEngine: () => BackendFeature; - // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/search-backend-module-elasticsearch/src/alpha.ts b/plugins/search-backend-module-elasticsearch/src/alpha.ts index 9801cf4643..f289847865 100644 --- a/plugins/search-backend-module-elasticsearch/src/alpha.ts +++ b/plugins/search-backend-module-elasticsearch/src/alpha.ts @@ -44,7 +44,7 @@ export const elasticsearchTranslatorExtensionPoint = * * @alpha */ -export const searchModuleElasticsearchEngine = createBackendModule({ +export default createBackendModule({ moduleId: 'elasticsearchEngine', pluginId: 'search', register(env) { diff --git a/plugins/search-backend-module-explore/alpha-api-report.md b/plugins/search-backend-module-explore/alpha-api-report.md index a01bc999fb..e1ecb85886 100644 --- a/plugins/search-backend-module-explore/alpha-api-report.md +++ b/plugins/search-backend-module-explore/alpha-api-report.md @@ -6,7 +6,8 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; // @alpha -export const searchModuleExploreCollator: () => BackendFeature; +const _default: () => BackendFeature; +export default _default; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/search-backend-module-explore/src/alpha.test.ts b/plugins/search-backend-module-explore/src/alpha.test.ts index 4505f86c5e..fa6ab8a909 100644 --- a/plugins/search-backend-module-explore/src/alpha.test.ts +++ b/plugins/search-backend-module-explore/src/alpha.test.ts @@ -16,7 +16,7 @@ import { mockServices, startTestBackend } from '@backstage/backend-test-utils'; import { searchIndexRegistryExtensionPoint } from '@backstage/plugin-search-backend-node/alpha'; -import { searchModuleExploreCollator } from './alpha'; +import searchModuleExploreCollator from './alpha'; describe('searchModuleExploreCollator', () => { const schedule = { diff --git a/plugins/search-backend-module-explore/src/alpha.ts b/plugins/search-backend-module-explore/src/alpha.ts index 403699e2cb..e8e3361e1b 100644 --- a/plugins/search-backend-module-explore/src/alpha.ts +++ b/plugins/search-backend-module-explore/src/alpha.ts @@ -34,7 +34,7 @@ import { readTaskScheduleDefinitionFromConfig } from '@backstage/backend-tasks'; * * @alpha */ -export const searchModuleExploreCollator = createBackendModule({ +export default createBackendModule({ moduleId: 'exploreCollator', pluginId: 'search', register(env) { diff --git a/plugins/search-backend-module-pg/alpha-api-report.md b/plugins/search-backend-module-pg/alpha-api-report.md index eaee78e944..b021f6884f 100644 --- a/plugins/search-backend-module-pg/alpha-api-report.md +++ b/plugins/search-backend-module-pg/alpha-api-report.md @@ -6,7 +6,8 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; // @alpha -export const searchModulePostgresEngine: () => BackendFeature; +const _default: () => BackendFeature; +export default _default; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/search-backend-module-pg/src/alpha.ts b/plugins/search-backend-module-pg/src/alpha.ts index 71d62e7927..4052b56cb3 100644 --- a/plugins/search-backend-module-pg/src/alpha.ts +++ b/plugins/search-backend-module-pg/src/alpha.ts @@ -24,7 +24,7 @@ import { PgSearchEngine } from './PgSearchEngine'; * @alpha * Search backend module for the Postgres engine. */ -export const searchModulePostgresEngine = createBackendModule({ +export default createBackendModule({ moduleId: 'postgresEngine', pluginId: 'search', register(env) { diff --git a/plugins/search-backend-module-techdocs/alpha-api-report.md b/plugins/search-backend-module-techdocs/alpha-api-report.md index 6e36a0020a..997d4a68db 100644 --- a/plugins/search-backend-module-techdocs/alpha-api-report.md +++ b/plugins/search-backend-module-techdocs/alpha-api-report.md @@ -6,7 +6,8 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; // @alpha -export const searchModuleTechDocsCollator: () => BackendFeature; +const _default: () => BackendFeature; +export default _default; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/search-backend-module-techdocs/src/alpha.test.ts b/plugins/search-backend-module-techdocs/src/alpha.test.ts index d65a77a765..a278614b75 100644 --- a/plugins/search-backend-module-techdocs/src/alpha.test.ts +++ b/plugins/search-backend-module-techdocs/src/alpha.test.ts @@ -16,7 +16,7 @@ import { mockServices, startTestBackend } from '@backstage/backend-test-utils'; import { searchIndexRegistryExtensionPoint } from '@backstage/plugin-search-backend-node/alpha'; -import { searchModuleTechDocsCollator } from './alpha'; +import searchModuleTechDocsCollator from './alpha'; describe('searchModuleTechDocsCollator', () => { const schedule = { diff --git a/plugins/search-backend-module-techdocs/src/alpha.ts b/plugins/search-backend-module-techdocs/src/alpha.ts index bb084ddfd9..1c4988cc21 100644 --- a/plugins/search-backend-module-techdocs/src/alpha.ts +++ b/plugins/search-backend-module-techdocs/src/alpha.ts @@ -33,7 +33,7 @@ import { searchIndexRegistryExtensionPoint } from '@backstage/plugin-search-back * @alpha * Search backend module for the TechDocs index. */ -export const searchModuleTechDocsCollator = createBackendModule({ +export default createBackendModule({ moduleId: 'techDocsCollator', pluginId: 'search', register(env) { diff --git a/plugins/search-backend/alpha-api-report.md b/plugins/search-backend/alpha-api-report.md index 6ee94a0e29..548f4c6608 100644 --- a/plugins/search-backend/alpha-api-report.md +++ b/plugins/search-backend/alpha-api-report.md @@ -6,7 +6,8 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; // @alpha -export const searchPlugin: () => BackendFeature; +const _default: () => BackendFeature; +export default _default; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/search-backend/src/alpha.test.ts b/plugins/search-backend/src/alpha.test.ts index 527f099236..a18ab7e104 100644 --- a/plugins/search-backend/src/alpha.test.ts +++ b/plugins/search-backend/src/alpha.test.ts @@ -16,7 +16,7 @@ import { startTestBackend } from '@backstage/backend-test-utils'; import request from 'supertest'; -import { searchPlugin } from './alpha'; +import searchPlugin from './alpha'; describe('searchPlugin', () => { it('should serve search results on query endpoint', async () => { diff --git a/plugins/search-backend/src/alpha.ts b/plugins/search-backend/src/alpha.ts index 59394ab7a6..8a9d4498bc 100644 --- a/plugins/search-backend/src/alpha.ts +++ b/plugins/search-backend/src/alpha.ts @@ -75,7 +75,7 @@ class SearchEngineRegistry implements SearchEngineRegistryExtensionPoint { * The Search plugin is responsible for starting search indexing processes and return search results. * @alpha */ -export const searchPlugin = createBackendPlugin({ +export default createBackendPlugin({ pluginId: 'search', register(env) { const searchIndexRegistry = new SearchIndexRegistry(); diff --git a/plugins/techdocs-backend/alpha-api-report.md b/plugins/techdocs-backend/alpha-api-report.md index 16db84c216..311dafd9a8 100644 --- a/plugins/techdocs-backend/alpha-api-report.md +++ b/plugins/techdocs-backend/alpha-api-report.md @@ -6,7 +6,8 @@ import { BackendFeature } from '@backstage/backend-plugin-api'; // @alpha -export const techdocsPlugin: () => BackendFeature; +const techdocsPlugin: () => BackendFeature; +export default techdocsPlugin; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/techdocs-backend/src/alpha.ts b/plugins/techdocs-backend/src/alpha.ts index 1a36c5a1f5..7ac39bde91 100644 --- a/plugins/techdocs-backend/src/alpha.ts +++ b/plugins/techdocs-backend/src/alpha.ts @@ -13,4 +13,5 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export { techdocsPlugin } from './plugin'; + +export { techdocsPlugin as default } from './plugin'; diff --git a/plugins/todo-backend/api-report.md b/plugins/todo-backend/api-report.md index 6db1e012e9..3244b397eb 100644 --- a/plugins/todo-backend/api-report.md +++ b/plugins/todo-backend/api-report.md @@ -91,7 +91,8 @@ export type TodoParserResult = { }; // @public -export const todoPlugin: () => BackendFeature; +const todoPlugin: () => BackendFeature; +export default todoPlugin; // @public (undocumented) export interface TodoReader { diff --git a/plugins/todo-backend/src/index.ts b/plugins/todo-backend/src/index.ts index b1654327d6..58a8336ca2 100644 --- a/plugins/todo-backend/src/index.ts +++ b/plugins/todo-backend/src/index.ts @@ -22,4 +22,4 @@ export * from './lib'; export * from './service'; -export * from './plugin'; +export { todoPlugin as default } from './plugin'; diff --git a/plugins/user-settings-backend/api-report.md b/plugins/user-settings-backend/api-report.md index b015915723..808bd0f29b 100644 --- a/plugins/user-settings-backend/api-report.md +++ b/plugins/user-settings-backend/api-report.md @@ -20,7 +20,8 @@ export interface RouterOptions { } // @alpha -export const userSettingsPlugin: () => BackendFeature; +const userSettingsPlugin: () => BackendFeature; +export default userSettingsPlugin; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/user-settings-backend/src/index.ts b/plugins/user-settings-backend/src/index.ts index 5504aaa564..14a9704e53 100644 --- a/plugins/user-settings-backend/src/index.ts +++ b/plugins/user-settings-backend/src/index.ts @@ -16,4 +16,4 @@ export * from './service'; export * from './database'; -export { userSettingsPlugin } from './plugin'; +export { userSettingsPlugin as default } from './plugin';