From f27f2a7d2d57589fc341276b287681dab9b06380 Mon Sep 17 00:00:00 2001 From: Tamim Khan Date: Mon, 28 Oct 2024 18:42:31 -0400 Subject: [PATCH] fix: fix pluginPackages type The value of `backstage.pluginPackages` is incorrectly set to `pluginId` when it is supposed to represent an array of all the packages that are a part of this plugin. This commit corrects this value to be an array and fixes an issue that prevents the installation of this plugin on certain backstage installations Signed-off-by: Tamim Khan --- .yarnrc.yml | 6 ++++-- package.json | 10 ++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.yarnrc.yml b/.yarnrc.yml index 5227755..d0f3975 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,8 +1,10 @@ nodeLinker: node-modules -npmRegistryServer: https://registry.npmjs.org/ +npmRegistryServer: "https://registry.npmjs.org/" npmScopes: pagerduty: npmAlwaysAuth: true - npmAuthToken: NPM_TOKEN \ No newline at end of file + npmAuthToken: NPM_TOKEN + +yarnPath: .yarn/releases/yarn-3.6.3.cjs diff --git a/package.json b/package.json index b707e05..aa778b6 100644 --- a/package.json +++ b/package.json @@ -13,15 +13,21 @@ "backstage": { "role": "frontend-plugin", "pluginId": "pagerduty", - "pluginPackages": "pagerduty" + "pluginPackages": [ + "@pagerduty/backstage-plugin", + "@pagerduty/backstage-plugin-common", + "@pagerduty/backstage-plugin-backend" + ] }, "homepage": "https://github.com/pagerduty/backstage-plugin", "repository": { "type": "git", - "url": "https://github.com/pagerduty/backstage-plugin.git" + "url": "https://github.com/pagerduty/backstage-plugin.git", + "directory": "." }, "keywords": [ "backstage", + "plugin", "pagerduty" ], "scripts": {