diff --git a/plugins/catalog-node/alpha-api-report.md b/plugins/catalog-node/alpha-api-report.md
new file mode 100644
index 0000000000..1bfb3f3566
--- /dev/null
+++ b/plugins/catalog-node/alpha-api-report.md
@@ -0,0 +1,39 @@
+## API Report File for "@backstage/plugin-catalog-node"
+
+> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
+
+```ts
+///
+
+import { CatalogApi } from '@backstage/catalog-client';
+import { CompoundEntityRef } from '@backstage/catalog-model';
+import { Entity } from '@backstage/catalog-model';
+import { ExtensionPoint } from '@backstage/backend-plugin-api';
+import { JsonValue } from '@backstage/types';
+import { LocationSpec } from '@backstage/plugin-catalog-common';
+import { ServiceRef } from '@backstage/backend-plugin-api';
+
+// @alpha (undocumented)
+export interface CatalogProcessingExtensionPoint {
+ // Warning: (ae-forgotten-export) The symbol "EntityProvider" needs to be exported by the entry point alpha.d.ts
+ //
+ // (undocumented)
+ addEntityProvider(
+ ...providers: Array>
+ ): void;
+ // Warning: (ae-forgotten-export) The symbol "CatalogProcessor" needs to be exported by the entry point alpha.d.ts
+ //
+ // (undocumented)
+ addProcessor(
+ ...processors: Array>
+ ): void;
+}
+
+// @alpha (undocumented)
+export const catalogProcessingExtensionPoint: ExtensionPoint;
+
+// @alpha
+export const catalogServiceRef: ServiceRef;
+
+// (No @packageDocumentation comment for this package)
+```
diff --git a/plugins/catalog-node/api-report.md b/plugins/catalog-node/api-report.md
index 9e9045db84..87da0b6944 100644
--- a/plugins/catalog-node/api-report.md
+++ b/plugins/catalog-node/api-report.md
@@ -5,28 +5,10 @@
```ts
///
-import { CatalogApi } from '@backstage/catalog-client';
import { CompoundEntityRef } from '@backstage/catalog-model';
import { Entity } from '@backstage/catalog-model';
-import { ExtensionPoint } from '@backstage/backend-plugin-api';
import { JsonValue } from '@backstage/types';
import { LocationSpec as LocationSpec_2 } from '@backstage/plugin-catalog-common';
-import { ServiceRef } from '@backstage/backend-plugin-api';
-
-// @alpha (undocumented)
-export interface CatalogProcessingExtensionPoint {
- // (undocumented)
- addEntityProvider(
- ...providers: Array>
- ): void;
- // (undocumented)
- addProcessor(
- ...processors: Array>
- ): void;
-}
-
-// @alpha (undocumented)
-export const catalogProcessingExtensionPoint: ExtensionPoint;
// @public (undocumented)
export type CatalogProcessor = {
@@ -109,9 +91,6 @@ export type CatalogProcessorResult =
| CatalogProcessorErrorResult
| CatalogProcessorRefreshKeysResult;
-// @alpha
-export const catalogServiceRef: ServiceRef;
-
// @public
export type DeferredEntity = {
entity: Entity;
diff --git a/plugins/catalog-node/package.json b/plugins/catalog-node/package.json
index 248b808645..d949bfaabb 100644
--- a/plugins/catalog-node/package.json
+++ b/plugins/catalog-node/package.json
@@ -6,17 +6,28 @@
"types": "src/index.ts",
"license": "Apache-2.0",
"publishConfig": {
- "access": "public",
- "main": "dist/index.cjs.js",
- "types": "dist/index.d.ts",
- "alphaTypes": "dist/index.alpha.d.ts"
+ "access": "public"
+ },
+ "exports": {
+ ".": "./src/index.ts",
+ "./alpha": "./src/alpha.ts"
+ },
+ "typesVersions": {
+ "*": {
+ "*": [
+ "src/index.ts"
+ ],
+ "alpha": [
+ "src/alpha.ts"
+ ]
+ }
},
"backstage": {
"role": "node-library"
},
"scripts": {
"start": "backstage-cli package start",
- "build": "backstage-cli package build --experimental-type-build",
+ "build": "backstage-cli package build",
"lint": "backstage-cli package lint",
"test": "backstage-cli package test",
"clean": "backstage-cli package clean",
@@ -37,7 +48,6 @@
"@backstage/cli": "workspace:^"
},
"files": [
- "dist",
- "alpha"
+ "dist"
]
}
diff --git a/plugins/catalog-node/src/alpha.ts b/plugins/catalog-node/src/alpha.ts
new file mode 100644
index 0000000000..4fb07bbc25
--- /dev/null
+++ b/plugins/catalog-node/src/alpha.ts
@@ -0,0 +1,19 @@
+/*
+ * Copyright 2023 The Backstage Authors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+export { catalogServiceRef } from './catalogService';
+export type { CatalogProcessingExtensionPoint } from './extensions';
+export { catalogProcessingExtensionPoint } from './extensions';
diff --git a/plugins/catalog-node/src/index.ts b/plugins/catalog-node/src/index.ts
index 6393c55f31..6a1accfcbd 100644
--- a/plugins/catalog-node/src/index.ts
+++ b/plugins/catalog-node/src/index.ts
@@ -20,8 +20,5 @@
* @packageDocumentation
*/
-export type { CatalogProcessingExtensionPoint } from './extensions';
-export { catalogProcessingExtensionPoint } from './extensions';
-export { catalogServiceRef } from './catalogService';
export * from './api';
export * from './processing';