From da418c89e41dbf11e95ed3d79c71105cac64c6c3 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Thu, 26 Jan 2023 10:46:23 +0100 Subject: [PATCH] scaffolder-backend-module-sentry: fix module setup Signed-off-by: Patrik Oldsberg --- .changeset/hungry-news-fix.md | 5 +++++ .../package.json | 19 +++---------------- yarn.lock | 12 ------------ 3 files changed, 8 insertions(+), 28 deletions(-) create mode 100644 .changeset/hungry-news-fix.md diff --git a/.changeset/hungry-news-fix.md b/.changeset/hungry-news-fix.md new file mode 100644 index 0000000000..c59113d9f4 --- /dev/null +++ b/.changeset/hungry-news-fix.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-scaffolder-backend-module-sentry': patch +--- + +Fix broken module exports and dependencies to match a backend module, rather than a frontend plugin. diff --git a/plugins/scaffolder-backend-module-sentry/package.json b/plugins/scaffolder-backend-module-sentry/package.json index 9978f0acc7..95a89371c8 100644 --- a/plugins/scaffolder-backend-module-sentry/package.json +++ b/plugins/scaffolder-backend-module-sentry/package.json @@ -6,11 +6,11 @@ "license": "Apache-2.0", "publishConfig": { "access": "public", - "main": "dist/index.esm.js", + "main": "dist/index.cjs.js", "types": "dist/index.d.ts" }, "backstage": { - "role": "frontend-plugin" + "role": "backend-plugin-module" }, "scripts": { "start": "backstage-cli package start", @@ -24,23 +24,10 @@ "dependencies": { "@backstage/config": "workspace:^", "@backstage/errors": "workspace:^", - "@backstage/integration": "workspace:^", "@backstage/plugin-scaffolder-node": "workspace:^" }, - "peerDependencies": { - "react": "^16.13.1 || ^17.0.0" - }, "devDependencies": { - "@backstage/cli": "workspace:^", - "@backstage/core-app-api": "workspace:^", - "@backstage/dev-utils": "workspace:^", - "@backstage/test-utils": "workspace:^", - "@testing-library/jest-dom": "^5.10.1", - "@testing-library/react": "^12.1.3", - "@testing-library/user-event": "^14.0.0", - "@types/node": "*", - "cross-fetch": "^3.1.5", - "msw": "^0.49.0" + "@backstage/cli": "workspace:^" }, "files": [ "dist" diff --git a/yarn.lock b/yarn.lock index bcc1177fdc..ad38ddc7c7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7216,20 +7216,8 @@ __metadata: dependencies: "@backstage/cli": "workspace:^" "@backstage/config": "workspace:^" - "@backstage/core-app-api": "workspace:^" - "@backstage/dev-utils": "workspace:^" "@backstage/errors": "workspace:^" - "@backstage/integration": "workspace:^" "@backstage/plugin-scaffolder-node": "workspace:^" - "@backstage/test-utils": "workspace:^" - "@testing-library/jest-dom": ^5.10.1 - "@testing-library/react": ^12.1.3 - "@testing-library/user-event": ^14.0.0 - "@types/node": "*" - cross-fetch: ^3.1.5 - msw: ^0.49.0 - peerDependencies: - react: ^16.13.1 || ^17.0.0 languageName: unknown linkType: soft