@backstage-community/plugin-catalog-backend-module-scaffolder-relation-processor 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @backstage-community/plugin-catalog-backend-module-scaffolder-relation-processor
2
+
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c67f7f4: Initial release of the scaffolder relation catalog processor for backstage
package/README.md ADDED
@@ -0,0 +1,74 @@
1
+ # Catalog Backend Module for Scaffolder Relation Catalog Processor
2
+
3
+ This is an extension module to the catalog-backend plugin, providing an additional catalog entity processor that adds a new relation that depends on the `spec.scaffoldedFrom` field to link scaffolder templates and the catalog entities they generated.
4
+
5
+ ## Getting Started
6
+
7
+ 1. Install the scaffolder relation catalog processor module using the following command:
8
+
9
+ ```console
10
+ yarn workspace backend add @backstage-community/backstage-plugin-catalog-backend-module-scaffolder-relation-processor
11
+ ```
12
+
13
+ ### Installing on the new backend system
14
+
15
+ To install this module into the [new backend system](https://backstage.io/docs/backend-system/), add the following into the `packages/backend/src/index.ts` file:
16
+
17
+ ```ts title="packages/backend/src/index.ts
18
+ const backend = createBackend();
19
+
20
+ // highlight-add-start
21
+ backend.add(
22
+ import(
23
+ '@backstage-community/backstage-plugin-catalog-backend-module-scaffolder-relation-processor/alpha'
24
+ ),
25
+ );
26
+ // highlight-add-end
27
+
28
+ backend.start();
29
+ ```
30
+
31
+ ### Installing on the legacy backend system
32
+
33
+ To install this module into the legacy backend system, add the following to the `packages/backend/src/plugins/catalog.ts` file:
34
+
35
+ ```ts title=packages/backend/src/plugins/catalog.ts
36
+ // highlight-add-start
37
+ import { ScaffolderRelationEntityProcessor } from '@backstage-community/backstage-plugin-catalog-backend-module-scaffolder-relation-processor';
38
+
39
+ // highlight-add-end
40
+
41
+ export default async function createPlugin(
42
+ env: PluginEnvironment,
43
+ ): Promise<Router> {
44
+ const builder = await CatalogBuilder.create(env);
45
+
46
+ /* ... other processors and/or providers ... */
47
+ // highlight-add-start
48
+ builder.addProcessor(new ScaffolderRelationEntityProcessor());
49
+ // highlight-add-end
50
+
51
+ const { processingEngine, router } = await builder.build();
52
+ await processingEngine.start();
53
+
54
+ return router;
55
+ }
56
+ ```
57
+
58
+ ### Usage
59
+
60
+ Catalog entities containing the `spec.scaffoldedFrom` field will have a relation link be formed between it and the `template` corresponding to the entity ref in the `spec.scaffoldedFrom` field.
61
+
62
+ This link can be viewed in the `relations` field of the Raw YAML view of a catalog entity when inspecting an entity. In the entity with the `spec.scaffoldedFrom` field, the relation type is `scaffoldedFrom` with a target pointing to the value of the `spec.scaffoldedFrom` field. Conversely, for the target template, it will have a relation type of `ScaffolderOf` with a target pointing to the entity with the `spec.scaffoldedFrom` field.
63
+
64
+ These relations should also appear on the `EntityCatalogGraphView` component from the `@backstage/plugin-catalog-graph` package (only if the entity corresponding to the entity ref exists in the catalog).
65
+
66
+ #### Example graph view
67
+
68
+ ![scaffoldedFrom Relation Graph View](./docs/example-images/scaffoldedFromGraphView.png)
69
+ ![scaffolderOf Relation Graph View](./docs/example-images/scaffolderOfGraphView.png)
70
+
71
+ #### Example Raw YAML view
72
+
73
+ ![scaffoldedFrom Relation YAML View](./docs/example-images/scaffoldedFromYAMLView.png)
74
+ ![scaffoldedOf Relation YAML View](./docs/example-images/scaffolderOfYAMLView.png)
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "@backstage-community/plugin-catalog-backend-module-scaffolder-relation-processor",
3
+ "version": "0.2.0",
4
+ "main": "../dist/alpha.cjs.js",
5
+ "types": "../dist/alpha.d.ts"
6
+ }
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var backendPluginApi = require('@backstage/backend-plugin-api');
6
+ var alpha = require('@backstage/plugin-catalog-node/alpha');
7
+ var ScaffolderRelationEntityProcessor = require('./cjs/ScaffolderRelationEntityProcessor-DegDmHl0.cjs.js');
8
+ require('@backstage/catalog-model');
9
+ require('@backstage/plugin-catalog-node');
10
+
11
+ const catalogModuleScaffolderRelationProcessor = backendPluginApi.createBackendModule({
12
+ pluginId: "catalog",
13
+ moduleId: "scaffolder-relation-processor",
14
+ register(env) {
15
+ env.registerInit({
16
+ deps: {
17
+ catalog: alpha.catalogProcessingExtensionPoint,
18
+ logger: backendPluginApi.coreServices.logger
19
+ },
20
+ async init({ catalog, logger }) {
21
+ logger.debug(
22
+ "Registering the scaffolder-relation-processor catalog module"
23
+ );
24
+ catalog.addProcessor(new ScaffolderRelationEntityProcessor.ScaffolderRelationEntityProcessor());
25
+ }
26
+ });
27
+ }
28
+ });
29
+
30
+ exports.default = catalogModuleScaffolderRelationProcessor;
31
+ //# sourceMappingURL=alpha.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alpha.cjs.js","sources":["../src/module.ts"],"sourcesContent":["import {\n coreServices,\n createBackendModule,\n} from '@backstage/backend-plugin-api';\nimport { catalogProcessingExtensionPoint } from '@backstage/plugin-catalog-node/alpha';\n\nimport { ScaffolderRelationEntityProcessor } from './ScaffolderRelationEntityProcessor';\n\n/**\n * Catalog processor that adds link relation between scaffolder templates and their generated entities\n *\n * @public\n */\nexport const catalogModuleScaffolderRelationProcessor = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'scaffolder-relation-processor',\n register(env) {\n env.registerInit({\n deps: {\n catalog: catalogProcessingExtensionPoint,\n logger: coreServices.logger,\n },\n async init({ catalog, logger }) {\n logger.debug(\n 'Registering the scaffolder-relation-processor catalog module',\n );\n catalog.addProcessor(new ScaffolderRelationEntityProcessor());\n },\n });\n },\n});\n"],"names":["createBackendModule","catalogProcessingExtensionPoint","coreServices","ScaffolderRelationEntityProcessor"],"mappings":";;;;;;;;;;AAaO,MAAM,2CAA2CA,oCAAoB,CAAA;AAAA,EAC1E,QAAU,EAAA,SAAA;AAAA,EACV,QAAU,EAAA,+BAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,OAAS,EAAAC,qCAAA;AAAA,QACT,QAAQC,6BAAa,CAAA,MAAA;AAAA,OACvB;AAAA,MACA,MAAM,IAAA,CAAK,EAAE,OAAA,EAAS,QAAU,EAAA;AAC9B,QAAO,MAAA,CAAA,KAAA;AAAA,UACL,8DAAA;AAAA,SACF,CAAA;AACA,QAAQ,OAAA,CAAA,YAAA,CAAa,IAAIC,mEAAA,EAAmC,CAAA,CAAA;AAAA,OAC9D;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;"}
@@ -0,0 +1,10 @@
1
+ import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
2
+
3
+ /**
4
+ * Catalog processor that adds link relation between scaffolder templates and their generated entities
5
+ *
6
+ * @public
7
+ */
8
+ declare const catalogModuleScaffolderRelationProcessor: () => _backstage_backend_plugin_api.BackendFeature;
9
+
10
+ export { catalogModuleScaffolderRelationProcessor as default };
@@ -0,0 +1,60 @@
1
+ 'use strict';
2
+
3
+ var catalogModel = require('@backstage/catalog-model');
4
+ var pluginCatalogNode = require('@backstage/plugin-catalog-node');
5
+
6
+ const RELATION_SCAFFOLDER_OF = "scaffolderOf";
7
+ const RELATION_SCAFFOLDED_FROM = "scaffoldedFrom";
8
+
9
+ class ScaffolderRelationEntityProcessor {
10
+ getProcessorName() {
11
+ return "ScaffolderRelationEntityProcessor";
12
+ }
13
+ async postProcessEntity(entity, _location, emit) {
14
+ var _a;
15
+ const selfRef = catalogModel.getCompoundEntityRef(entity);
16
+ function doEmit(targets, context, outgoingRelation, incomingRelation) {
17
+ if (!targets) {
18
+ return;
19
+ }
20
+ for (const target of [targets].flat()) {
21
+ const targetRef = catalogModel.parseEntityRef(target, context);
22
+ emit(
23
+ pluginCatalogNode.processingResult.relation({
24
+ source: selfRef,
25
+ type: outgoingRelation,
26
+ target: {
27
+ kind: targetRef.kind,
28
+ namespace: targetRef.namespace,
29
+ name: targetRef.name
30
+ }
31
+ })
32
+ );
33
+ emit(
34
+ pluginCatalogNode.processingResult.relation({
35
+ source: {
36
+ kind: targetRef.kind,
37
+ namespace: targetRef.namespace,
38
+ name: targetRef.name
39
+ },
40
+ type: incomingRelation,
41
+ target: selfRef
42
+ })
43
+ );
44
+ }
45
+ }
46
+ const arbitraryEntity = entity;
47
+ doEmit(
48
+ (_a = arbitraryEntity.spec) == null ? void 0 : _a.scaffoldedFrom,
49
+ { defaultKind: "Template", defaultNamespace: selfRef.namespace },
50
+ RELATION_SCAFFOLDED_FROM,
51
+ RELATION_SCAFFOLDER_OF
52
+ );
53
+ return entity;
54
+ }
55
+ }
56
+
57
+ exports.RELATION_SCAFFOLDED_FROM = RELATION_SCAFFOLDED_FROM;
58
+ exports.RELATION_SCAFFOLDER_OF = RELATION_SCAFFOLDER_OF;
59
+ exports.ScaffolderRelationEntityProcessor = ScaffolderRelationEntityProcessor;
60
+ //# sourceMappingURL=ScaffolderRelationEntityProcessor-DegDmHl0.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScaffolderRelationEntityProcessor-DegDmHl0.cjs.js","sources":["../../src/relations.ts","../../src/ScaffolderRelationEntityProcessor.ts"],"sourcesContent":["/**\n * A relation from a scaffolder template entity to the entity it generated.\n * Reverse direction of {@link RELATION_SCAFFOLDED_FROM}\n *\n * @public\n */\nexport const RELATION_SCAFFOLDER_OF = 'scaffolderOf';\n\n/**\n * A relation of an entity generated from a scaffolder template entity\n * Reverse direction of {@link RELATION_SCAFFOLDER_OF}\n *\n * @public\n */\nexport const RELATION_SCAFFOLDED_FROM = 'scaffoldedFrom';\n","import {\n Entity,\n getCompoundEntityRef,\n parseEntityRef,\n} from '@backstage/catalog-model';\nimport { LocationSpec } from '@backstage/plugin-catalog-common';\nimport {\n CatalogProcessor,\n CatalogProcessorEmit,\n processingResult,\n} from '@backstage/plugin-catalog-node';\n\nimport { RELATION_SCAFFOLDED_FROM, RELATION_SCAFFOLDER_OF } from './relations';\nimport { ScaffoldedFromSpec } from './types';\n\n/** @public */\nexport class ScaffolderRelationEntityProcessor implements CatalogProcessor {\n getProcessorName(): string {\n return 'ScaffolderRelationEntityProcessor';\n }\n\n async postProcessEntity(\n entity: Entity,\n _location: LocationSpec,\n emit: CatalogProcessorEmit,\n ): Promise<Entity> {\n const selfRef = getCompoundEntityRef(entity);\n\n /**\n * Utilities\n */\n function doEmit(\n targets: string | string[] | undefined,\n context: { defaultKind?: string; defaultNamespace: string },\n outgoingRelation: string,\n incomingRelation: string,\n ): void {\n if (!targets) {\n return;\n }\n for (const target of [targets].flat()) {\n const targetRef = parseEntityRef(target, context);\n emit(\n processingResult.relation({\n source: selfRef,\n type: outgoingRelation,\n target: {\n kind: targetRef.kind,\n namespace: targetRef.namespace,\n name: targetRef.name,\n },\n }),\n );\n emit(\n processingResult.relation({\n source: {\n kind: targetRef.kind,\n namespace: targetRef.namespace,\n name: targetRef.name,\n },\n type: incomingRelation,\n target: selfRef,\n }),\n );\n }\n }\n\n /**\n * Emit relations for entities generated by templates (can be any entity type)\n */\n const arbitraryEntity = entity as Entity & Partial<ScaffoldedFromSpec>;\n doEmit(\n arbitraryEntity.spec?.scaffoldedFrom,\n { defaultKind: 'Template', defaultNamespace: selfRef.namespace },\n RELATION_SCAFFOLDED_FROM,\n RELATION_SCAFFOLDER_OF,\n );\n return entity;\n }\n}\n"],"names":["getCompoundEntityRef","parseEntityRef","processingResult"],"mappings":";;;;;AAMO,MAAM,sBAAyB,GAAA,eAAA;AAQ/B,MAAM,wBAA2B,GAAA;;ACEjC,MAAM,iCAA8D,CAAA;AAAA,EACzE,gBAA2B,GAAA;AACzB,IAAO,OAAA,mCAAA,CAAA;AAAA,GACT;AAAA,EAEA,MAAM,iBAAA,CACJ,MACA,EAAA,SAAA,EACA,IACiB,EAAA;AAzBrB,IAAA,IAAA,EAAA,CAAA;AA0BI,IAAM,MAAA,OAAA,GAAUA,kCAAqB,MAAM,CAAA,CAAA;AAK3C,IAAA,SAAS,MACP,CAAA,OAAA,EACA,OACA,EAAA,gBAAA,EACA,gBACM,EAAA;AACN,MAAA,IAAI,CAAC,OAAS,EAAA;AACZ,QAAA,OAAA;AAAA,OACF;AACA,MAAA,KAAA,MAAW,MAAU,IAAA,CAAC,OAAO,CAAA,CAAE,MAAQ,EAAA;AACrC,QAAM,MAAA,SAAA,GAAYC,2BAAe,CAAA,MAAA,EAAQ,OAAO,CAAA,CAAA;AAChD,QAAA,IAAA;AAAA,UACEC,mCAAiB,QAAS,CAAA;AAAA,YACxB,MAAQ,EAAA,OAAA;AAAA,YACR,IAAM,EAAA,gBAAA;AAAA,YACN,MAAQ,EAAA;AAAA,cACN,MAAM,SAAU,CAAA,IAAA;AAAA,cAChB,WAAW,SAAU,CAAA,SAAA;AAAA,cACrB,MAAM,SAAU,CAAA,IAAA;AAAA,aAClB;AAAA,WACD,CAAA;AAAA,SACH,CAAA;AACA,QAAA,IAAA;AAAA,UACEA,mCAAiB,QAAS,CAAA;AAAA,YACxB,MAAQ,EAAA;AAAA,cACN,MAAM,SAAU,CAAA,IAAA;AAAA,cAChB,WAAW,SAAU,CAAA,SAAA;AAAA,cACrB,MAAM,SAAU,CAAA,IAAA;AAAA,aAClB;AAAA,YACA,IAAM,EAAA,gBAAA;AAAA,YACN,MAAQ,EAAA,OAAA;AAAA,WACT,CAAA;AAAA,SACH,CAAA;AAAA,OACF;AAAA,KACF;AAKA,IAAA,MAAM,eAAkB,GAAA,MAAA,CAAA;AACxB,IAAA,MAAA;AAAA,MACE,CAAA,EAAA,GAAA,eAAA,CAAgB,SAAhB,IAAsB,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,cAAA;AAAA,MACtB,EAAE,WAAA,EAAa,UAAY,EAAA,gBAAA,EAAkB,QAAQ,SAAU,EAAA;AAAA,MAC/D,wBAAA;AAAA,MACA,sBAAA;AAAA,KACF,CAAA;AACA,IAAO,OAAA,MAAA,CAAA;AAAA,GACT;AACF;;;;;;"}
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ var ScaffolderRelationEntityProcessor = require('./cjs/ScaffolderRelationEntityProcessor-DegDmHl0.cjs.js');
4
+ require('@backstage/catalog-model');
5
+ require('@backstage/plugin-catalog-node');
6
+
7
+ const dynamicPluginInstaller = {
8
+ kind: "legacy",
9
+ async catalog(builder) {
10
+ builder.addProcessor(new ScaffolderRelationEntityProcessor.ScaffolderRelationEntityProcessor());
11
+ }
12
+ };
13
+
14
+ exports.RELATION_SCAFFOLDED_FROM = ScaffolderRelationEntityProcessor.RELATION_SCAFFOLDED_FROM;
15
+ exports.RELATION_SCAFFOLDER_OF = ScaffolderRelationEntityProcessor.RELATION_SCAFFOLDER_OF;
16
+ exports.ScaffolderRelationEntityProcessor = ScaffolderRelationEntityProcessor.ScaffolderRelationEntityProcessor;
17
+ exports.dynamicPluginInstaller = dynamicPluginInstaller;
18
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/dynamic/index.ts"],"sourcesContent":["import { BackendDynamicPluginInstaller } from '@backstage/backend-dynamic-feature-service';\n\nimport { ScaffolderRelationEntityProcessor } from '../ScaffolderRelationEntityProcessor';\n\n/**\n * @public\n */\nexport const dynamicPluginInstaller: BackendDynamicPluginInstaller = {\n kind: 'legacy',\n async catalog(builder) {\n builder.addProcessor(new ScaffolderRelationEntityProcessor());\n },\n};\n"],"names":["ScaffolderRelationEntityProcessor"],"mappings":";;;;;;AAOO,MAAM,sBAAwD,GAAA;AAAA,EACnE,IAAM,EAAA,QAAA;AAAA,EACN,MAAM,QAAQ,OAAS,EAAA;AACrB,IAAQ,OAAA,CAAA,YAAA,CAAa,IAAIA,mEAAA,EAAmC,CAAA,CAAA;AAAA,GAC9D;AACF;;;;;;;"}
@@ -0,0 +1,44 @@
1
+ import { BackendDynamicPluginInstaller } from '@backstage/backend-dynamic-feature-service';
2
+ import { Entity } from '@backstage/catalog-model';
3
+ import { LocationSpec } from '@backstage/plugin-catalog-common';
4
+ import { CatalogProcessor, CatalogProcessorEmit } from '@backstage/plugin-catalog-node';
5
+
6
+ /**
7
+ * A relation from a scaffolder template entity to the entity it generated.
8
+ * Reverse direction of {@link RELATION_SCAFFOLDED_FROM}
9
+ *
10
+ * @public
11
+ */
12
+ declare const RELATION_SCAFFOLDER_OF = "scaffolderOf";
13
+ /**
14
+ * A relation of an entity generated from a scaffolder template entity
15
+ * Reverse direction of {@link RELATION_SCAFFOLDER_OF}
16
+ *
17
+ * @public
18
+ */
19
+ declare const RELATION_SCAFFOLDED_FROM = "scaffoldedFrom";
20
+
21
+ /**
22
+ * Extension of the `spec` field of the entity model
23
+ * Used to form relations between entities and the scaffolder templates that generated them
24
+ *
25
+ * @public
26
+ */
27
+ type ScaffoldedFromSpec = {
28
+ spec: {
29
+ scaffoldedFrom: string;
30
+ };
31
+ };
32
+
33
+ /**
34
+ * @public
35
+ */
36
+ declare const dynamicPluginInstaller: BackendDynamicPluginInstaller;
37
+
38
+ /** @public */
39
+ declare class ScaffolderRelationEntityProcessor implements CatalogProcessor {
40
+ getProcessorName(): string;
41
+ postProcessEntity(entity: Entity, _location: LocationSpec, emit: CatalogProcessorEmit): Promise<Entity>;
42
+ }
43
+
44
+ export { RELATION_SCAFFOLDED_FROM, RELATION_SCAFFOLDER_OF, type ScaffoldedFromSpec, ScaffolderRelationEntityProcessor, dynamicPluginInstaller };
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@backstage-community/plugin-catalog-backend-module-scaffolder-relation-processor-dynamic",
3
+ "description": "The scaffolder-relation-processor backend module for the catalog plugin.",
4
+ "version": "0.0.0",
5
+ "main": "dist/index.cjs.js",
6
+ "types": "dist/index.d.ts",
7
+ "license": "Apache-2.0",
8
+ "publishConfig": {
9
+ "access": "public",
10
+ "main": "dist/index.cjs.js",
11
+ "types": "dist/index.d.ts"
12
+ },
13
+ "backstage": {
14
+ "role": "backend-plugin-module"
15
+ },
16
+ "exports": {
17
+ ".": {
18
+ "require": "./dist/index.cjs.js",
19
+ "default": "./dist/index.cjs.js"
20
+ },
21
+ "./alpha": {
22
+ "require": "./dist/alpha.cjs.js",
23
+ "default": "./dist/alpha.cjs.js"
24
+ },
25
+ "./package.json": "./package.json"
26
+ },
27
+ "files": [
28
+ "dist",
29
+ "config.d.ts",
30
+ "app-config.janus-idp.yaml",
31
+ "alpha"
32
+ ],
33
+ "bundleDependencies": true,
34
+ "peerDependencies": {
35
+ "@backstage/backend-common": "^0.21.6",
36
+ "@backstage/backend-dynamic-feature-service": "^0.2.8",
37
+ "@backstage/backend-plugin-api": "^0.6.16",
38
+ "@backstage/catalog-model": "^1.4.5",
39
+ "@backstage/plugin-catalog-common": "^1.0.22",
40
+ "@backstage/plugin-catalog-node": "^1.11.1"
41
+ },
42
+ "overrides": {
43
+ "@aws-sdk/util-utf8-browser": {
44
+ "@smithy/util-utf8": "^2.0.0"
45
+ }
46
+ },
47
+ "resolutions": {
48
+ "@aws-sdk/util-utf8-browser": "npm:@smithy/util-utf8@~2"
49
+ }
50
+ }
@@ -0,0 +1,18 @@
1
+ # This file is generated by running "yarn install" inside your project.
2
+ # Manual changes might be lost - proceed with caution!
3
+
4
+ __metadata:
5
+ version: 6
6
+
7
+ "@backstage-community/plugin-catalog-backend-module-scaffolder-relation-processor-dynamic@workspace:.":
8
+ version: 0.0.0-use.local
9
+ resolution: "@backstage-community/plugin-catalog-backend-module-scaffolder-relation-processor-dynamic@workspace:."
10
+ peerDependencies:
11
+ "@backstage/backend-common": ^0.21.6
12
+ "@backstage/backend-dynamic-feature-service": ^0.2.8
13
+ "@backstage/backend-plugin-api": ^0.6.16
14
+ "@backstage/catalog-model": ^1.4.5
15
+ "@backstage/plugin-catalog-common": ^1.0.22
16
+ "@backstage/plugin-catalog-node": ^1.11.1
17
+ languageName: unknown
18
+ linkType: soft
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@backstage-community/plugin-catalog-backend-module-scaffolder-relation-processor",
3
+ "description": "The scaffolder-relation-processor backend module for the catalog plugin.",
4
+ "version": "0.2.0",
5
+ "main": "./dist/index.cjs.js",
6
+ "types": "./dist/index.d.ts",
7
+ "license": "Apache-2.0",
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/backstage/community-plugins",
14
+ "directory": "workspaces/scaffolder-relation-processor/plugins/catalog-backend-module-scaffolder-relation-processor"
15
+ },
16
+ "backstage": {
17
+ "role": "backend-plugin-module"
18
+ },
19
+ "exports": {
20
+ ".": {
21
+ "require": "./dist/index.cjs.js",
22
+ "types": "./dist/index.d.ts",
23
+ "default": "./dist/index.cjs.js"
24
+ },
25
+ "./alpha": {
26
+ "require": "./dist/alpha.cjs.js",
27
+ "types": "./dist/alpha.d.ts",
28
+ "default": "./dist/alpha.cjs.js"
29
+ },
30
+ "./package.json": "./package.json"
31
+ },
32
+ "scripts": {
33
+ "start": "backstage-cli package start",
34
+ "build": "backstage-cli package build",
35
+ "lint": "backstage-cli package lint",
36
+ "test": "backstage-cli package test",
37
+ "clean": "backstage-cli package clean",
38
+ "prepack": "backstage-cli package prepack",
39
+ "postpack": "backstage-cli package postpack",
40
+ "postversion": "yarn run export-dynamic",
41
+ "export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies",
42
+ "tsc": "tsc"
43
+ },
44
+ "dependencies": {
45
+ "@backstage/backend-common": "^0.21.6",
46
+ "@backstage/backend-dynamic-feature-service": "^0.2.8",
47
+ "@backstage/backend-plugin-api": "^0.6.16",
48
+ "@backstage/catalog-model": "^1.4.5",
49
+ "@backstage/plugin-catalog-common": "^1.0.22",
50
+ "@backstage/plugin-catalog-node": "^1.11.1"
51
+ },
52
+ "devDependencies": {
53
+ "@backstage/backend-test-utils": "0.3.6",
54
+ "@backstage/cli": "0.26.5",
55
+ "@janus-idp/cli": "1.8.10"
56
+ },
57
+ "files": [
58
+ "dist",
59
+ "config.d.ts",
60
+ "dist-dynamic/*.*",
61
+ "dist-dynamic/dist/**",
62
+ "dist-dynamic/alpha/*",
63
+ "app-config.janus-idp.yaml",
64
+ "alpha"
65
+ ]
66
+ }