From da6e417572203be20ee3b9c6696d31c0b3ad89ca Mon Sep 17 00:00:00 2001 From: irma12 Date: Tue, 15 Oct 2024 11:10:18 +0200 Subject: [PATCH 1/3] Remove uneeded dependecies --- .changeset/unlucky-maps-shake.md | 5 +++++ plugins/backend/wiz-backend/dev/index.ts | 23 ----------------------- plugins/backend/wiz-backend/src/plugin.ts | 2 +- 3 files changed, 6 insertions(+), 24 deletions(-) create mode 100644 .changeset/unlucky-maps-shake.md delete mode 100644 plugins/backend/wiz-backend/dev/index.ts diff --git a/.changeset/unlucky-maps-shake.md b/.changeset/unlucky-maps-shake.md new file mode 100644 index 000000000..e88d8acad --- /dev/null +++ b/.changeset/unlucky-maps-shake.md @@ -0,0 +1,5 @@ +--- +'@roadiehq/plugin-wiz-backend': minor +--- + +Remove uneeded dependency from backend plugin diff --git a/plugins/backend/wiz-backend/dev/index.ts b/plugins/backend/wiz-backend/dev/index.ts deleted file mode 100644 index 0c1531f8f..000000000 --- a/plugins/backend/wiz-backend/dev/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright 2024 Larder Software Limited - * - * 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. - */ -import { createBackend } from '@backstage/backend-defaults'; - -const backend = createBackend(); - -backend.add(import('@backstage/plugin-auth-backend')); -backend.add(import('../src')); - -backend.start(); diff --git a/plugins/backend/wiz-backend/src/plugin.ts b/plugins/backend/wiz-backend/src/plugin.ts index 5da004350..a801bf6b6 100644 --- a/plugins/backend/wiz-backend/src/plugin.ts +++ b/plugins/backend/wiz-backend/src/plugin.ts @@ -25,7 +25,7 @@ import { createRouter } from './service/router'; * @public */ export const wizBackendPlugin = createBackendPlugin({ - pluginId: 'wiz-backend', + pluginId: 'plugin-wiz-backend', register(env) { env.registerInit({ deps: { From eab6ad765f408e8ebfd4642de06618006778de20 Mon Sep 17 00:00:00 2001 From: irma12 Date: Tue, 15 Oct 2024 11:15:56 +0200 Subject: [PATCH 2/3] Fix changeset to patch --- .changeset/unlucky-maps-shake.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/unlucky-maps-shake.md b/.changeset/unlucky-maps-shake.md index e88d8acad..02eb73471 100644 --- a/.changeset/unlucky-maps-shake.md +++ b/.changeset/unlucky-maps-shake.md @@ -1,5 +1,5 @@ --- -'@roadiehq/plugin-wiz-backend': minor +'@roadiehq/plugin-wiz-backend': patch --- Remove uneeded dependency from backend plugin From 3ccb0911b3f9da242b0537c671e0cbe3cfde033f Mon Sep 17 00:00:00 2001 From: irma12 Date: Tue, 15 Oct 2024 11:32:47 +0200 Subject: [PATCH 3/3] remove private flag from package --- plugins/backend/wiz-backend/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/backend/wiz-backend/package.json b/plugins/backend/wiz-backend/package.json index d70778823..b53a34ed9 100644 --- a/plugins/backend/wiz-backend/package.json +++ b/plugins/backend/wiz-backend/package.json @@ -4,7 +4,6 @@ "main": "src/index.ts", "types": "src/index.ts", "license": "Apache-2.0", - "private": true, "publishConfig": { "access": "public", "main": "dist/index.cjs.js",