From ca6ac809f44060b339fccf912efcbfa10aff0510 Mon Sep 17 00:00:00 2001 From: Dmitriy Lazarev Date: Tue, 30 Jul 2024 18:57:41 +0500 Subject: [PATCH] Fix backstage metadata in package.json Signed-off-by: Dmitriy Lazarev --- packages/ingestion-tests/package.json | 1 + plugins/batch-loader/package.json | 1 + .../effection-inspector-backend/package.json | 7 +++++- plugins/effection-inspector/package.json | 8 +++++- .../package.json | 25 ++++++++++++++++--- plugins/graphql-backend-node/package.json | 8 +++++- plugins/graphql-backend/package.json | 8 +++++- plugins/healthcheck/package.json | 6 ++++- plugins/humanitec-backend/package.json | 8 +++++- plugins/humanitec-common/package.json | 9 ++++++- plugins/humanitec/package.json | 9 ++++++- .../package.json | 7 +++++- .../incremental-ingestion-github/package.json | 7 +++++- .../scaffolder-frontend-workflow/package.json | 1 + plugins/scaffolder-yaml-actions/package.json | 6 ++++- 15 files changed, 96 insertions(+), 15 deletions(-) diff --git a/packages/ingestion-tests/package.json b/packages/ingestion-tests/package.json index aa744fc7d1..03b3524ccc 100644 --- a/packages/ingestion-tests/package.json +++ b/packages/ingestion-tests/package.json @@ -1,6 +1,7 @@ { "name": "@frontside/backstage-ingestion-tests", "version": "0.7.1", + "sideEffects": false, "scripts": { "start": "backstage-cli package start", "build": "backstage-cli package build", diff --git a/plugins/batch-loader/package.json b/plugins/batch-loader/package.json index 9a6db471c5..bd8830b588 100644 --- a/plugins/batch-loader/package.json +++ b/plugins/batch-loader/package.json @@ -13,6 +13,7 @@ "backstage": { "role": "common-library" }, + "sideEffects": false, "scripts": { "start": "backstage-cli package start", "build": "backstage-cli package build", diff --git a/plugins/effection-inspector-backend/package.json b/plugins/effection-inspector-backend/package.json index f3fc660f9b..407f67ca7d 100644 --- a/plugins/effection-inspector-backend/package.json +++ b/plugins/effection-inspector-backend/package.json @@ -10,7 +10,12 @@ "types": "dist/index.d.ts" }, "backstage": { - "role": "backend-plugin" + "role": "backend-plugin", + "pluginId": "effection-inspector", + "pluginPackages": [ + "@frontside/backstage-plugin-effection-inspector", + "@frontside/backstage-plugin-effection-inspector-backend" + ] }, "scripts": { "start": "backstage-cli package start", diff --git a/plugins/effection-inspector/package.json b/plugins/effection-inspector/package.json index 7bec92956c..3e4146ff81 100644 --- a/plugins/effection-inspector/package.json +++ b/plugins/effection-inspector/package.json @@ -10,8 +10,14 @@ "types": "dist/index.d.ts" }, "backstage": { - "role": "frontend-plugin" + "role": "frontend-plugin", + "pluginId": "effection-inspector", + "pluginPackages": [ + "@frontside/backstage-plugin-effection-inspector", + "@frontside/backstage-plugin-effection-inspector-backend" + ] }, + "sideEffects": false, "scripts": { "start": "backstage-cli package start", "build": "backstage-cli package build", diff --git a/plugins/graphql-backend-module-catalog/package.json b/plugins/graphql-backend-module-catalog/package.json index f1197d9109..a83edd3448 100644 --- a/plugins/graphql-backend-module-catalog/package.json +++ b/plugins/graphql-backend-module-catalog/package.json @@ -6,9 +6,7 @@ "types": "src/index.ts", "license": "Apache-2.0", "publishConfig": { - "access": "public", - "main": "dist/index.cjs.js", - "types": "dist/index.d.ts" + "access": "public" }, "exports": { ".": "./src/index.ts", @@ -16,8 +14,27 @@ "./relation.graphql": "./src/relation/relation.graphql", "./package.json": "./package.json" }, + "typesVersions": { + "*": { + "catalog.graphql": [ + "src/catalog/catalog.graphql" + ], + "relation.graphql": [ + "src/relation/relation.graphql" + ], + "package.json": [ + "package.json" + ] + } + }, "backstage": { - "role": "backend-plugin" + "role": "backend-plugin", + "pluginId": "graphql", + "pluginPackages": [ + "@frontside/backstage-plugin-graphql-backend", + "@frontside/backstage-plugin-graphql-backend-module-catalog", + "@frontside/backstage-plugin-graphql-backend-node" + ] }, "homepage": "https://frontside.com", "repository": { diff --git a/plugins/graphql-backend-node/package.json b/plugins/graphql-backend-node/package.json index a5712d0468..48fc81eb1f 100644 --- a/plugins/graphql-backend-node/package.json +++ b/plugins/graphql-backend-node/package.json @@ -11,7 +11,13 @@ "types": "dist/index.d.ts" }, "backstage": { - "role": "backend-plugin" + "role": "backend-plugin", + "pluginId": "graphql", + "pluginPackages": [ + "@frontside/backstage-plugin-graphql-backend", + "@frontside/backstage-plugin-graphql-backend-module-catalog", + "@frontside/backstage-plugin-graphql-backend-node" + ] }, "homepage": "https://frontside.com", "repository": { diff --git a/plugins/graphql-backend/package.json b/plugins/graphql-backend/package.json index dc640b5abd..92846a37f6 100644 --- a/plugins/graphql-backend/package.json +++ b/plugins/graphql-backend/package.json @@ -11,7 +11,13 @@ "types": "dist/index.d.ts" }, "backstage": { - "role": "backend-plugin" + "role": "backend-plugin", + "pluginId": "graphql", + "pluginPackages": [ + "@frontside/backstage-plugin-graphql-backend", + "@frontside/backstage-plugin-graphql-backend-module-catalog", + "@frontside/backstage-plugin-graphql-backend-node" + ] }, "homepage": "https://frontside.com", "repository": { diff --git a/plugins/healthcheck/package.json b/plugins/healthcheck/package.json index e174efca63..92a3d25b2b 100644 --- a/plugins/healthcheck/package.json +++ b/plugins/healthcheck/package.json @@ -11,7 +11,11 @@ "types": "dist/index.d.ts" }, "backstage": { - "role": "backend-plugin" + "role": "backend-plugin", + "pluginId": "healthcheck", + "pluginPackages": [ + "@internal/plugin-healthcheck" + ] }, "scripts": { "start": "backstage-cli package start", diff --git a/plugins/humanitec-backend/package.json b/plugins/humanitec-backend/package.json index 1267055489..01f780b92b 100644 --- a/plugins/humanitec-backend/package.json +++ b/plugins/humanitec-backend/package.json @@ -11,7 +11,13 @@ "types": "dist/index.d.ts" }, "backstage": { - "role": "backend-plugin" + "role": "backend-plugin", + "pluginId": "humanitec", + "pluginPackages": [ + "@frontside/backstage-plugin-humanitec", + "@frontside/backstage-plugin-humanitec-backend", + "@frontside/backstage-plugin-humanitec-common" + ] }, "scripts": { "start": "backstage-cli package start", diff --git a/plugins/humanitec-common/package.json b/plugins/humanitec-common/package.json index 8aa4681c97..028106baf1 100644 --- a/plugins/humanitec-common/package.json +++ b/plugins/humanitec-common/package.json @@ -13,8 +13,15 @@ "types": "dist/index.d.ts" }, "backstage": { - "role": "common-library" + "role": "common-library", + "pluginId": "humanitec", + "pluginPackages": [ + "@frontside/backstage-plugin-humanitec", + "@frontside/backstage-plugin-humanitec-backend", + "@frontside/backstage-plugin-humanitec-common" + ] }, + "sideEffects": false, "scripts": { "build": "backstage-cli package build", "lint": "backstage-cli package lint", diff --git a/plugins/humanitec/package.json b/plugins/humanitec/package.json index 1054764c6b..51b3c63543 100644 --- a/plugins/humanitec/package.json +++ b/plugins/humanitec/package.json @@ -11,8 +11,15 @@ "types": "dist/index.d.ts" }, "backstage": { - "role": "frontend-plugin" + "role": "frontend-plugin", + "pluginId": "humanitec", + "pluginPackages": [ + "@frontside/backstage-plugin-humanitec", + "@frontside/backstage-plugin-humanitec-backend", + "@frontside/backstage-plugin-humanitec-common" + ] }, + "sideEffects": false, "scripts": { "start": "backstage-cli package start", "build": "backstage-cli package build", diff --git a/plugins/incremental-ingestion-backend/package.json b/plugins/incremental-ingestion-backend/package.json index 68c9672819..0e8b13d872 100644 --- a/plugins/incremental-ingestion-backend/package.json +++ b/plugins/incremental-ingestion-backend/package.json @@ -11,7 +11,12 @@ "types": "dist/index.d.ts" }, "backstage": { - "role": "backend-plugin" + "role": "backend-plugin", + "pluginId": "incremental-ingestion", + "pluginPackages": [ + "@frontside/backstage-plugin-incremental-ingestion-backend", + "@frontside/backstage-plugin-incremental-ingestion-github" + ] }, "scripts": { "start": "backstage-cli package start", diff --git a/plugins/incremental-ingestion-github/package.json b/plugins/incremental-ingestion-github/package.json index a22c9e505c..9600be23b4 100644 --- a/plugins/incremental-ingestion-github/package.json +++ b/plugins/incremental-ingestion-github/package.json @@ -10,7 +10,12 @@ "types": "dist/index.d.ts" }, "backstage": { - "role": "backend-plugin" + "role": "backend-plugin", + "pluginId": "incremental-ingestion", + "pluginPackages": [ + "@frontside/backstage-plugin-incremental-ingestion-backend", + "@frontside/backstage-plugin-incremental-ingestion-github" + ] }, "scripts": { "start": "backstage-cli package start", diff --git a/plugins/scaffolder-frontend-workflow/package.json b/plugins/scaffolder-frontend-workflow/package.json index 32defb50f6..fdf414a547 100644 --- a/plugins/scaffolder-frontend-workflow/package.json +++ b/plugins/scaffolder-frontend-workflow/package.json @@ -12,6 +12,7 @@ "backstage": { "role": "web-library" }, + "sideEffects": false, "scripts": { "start": "backstage-cli package start", "build": "backstage-cli package build", diff --git a/plugins/scaffolder-yaml-actions/package.json b/plugins/scaffolder-yaml-actions/package.json index 2ad6abb793..0783d45131 100644 --- a/plugins/scaffolder-yaml-actions/package.json +++ b/plugins/scaffolder-yaml-actions/package.json @@ -11,7 +11,11 @@ "types": "dist/index.d.ts" }, "backstage": { - "role": "backend-plugin-module" + "role": "node-library", + "pluginId": "scaffolder", + "pluginPackages": [ + "@frontside/scaffolder-yaml-actions" + ] }, "scripts": { "start": "backstage-cli package start",