Remove unused dependencies in notifications and scaffolder

Signed-off-by: Hope Hadfield <hhadfiel@redhat.com>
This commit is contained in:
Hope Hadfield
2025-09-18 11:15:16 -04:00
parent d06cadc612
commit f5e09631a4
12 changed files with 11 additions and 68 deletions
+9
View File
@@ -0,0 +1,9 @@
---
'@backstage/plugin-scaffolder-backend-module-bitbucket-server': patch
'@backstage/plugin-notifications-backend-module-email': patch
'@backstage/plugin-scaffolder-backend-module-gitlab': patch
'@backstage/plugin-notifications-backend': patch
'@backstage/plugin-notifications': patch
---
Removed unused dependencies
@@ -1,8 +1,3 @@
# Knip report
## Unused dependencies (1)
| Name | Location | Severity |
| :------------- | :----------- | :------- |
| @aws-sdk/types | plugins/notifications-backend-module-email/package.json | error |
@@ -35,7 +35,6 @@
},
"dependencies": {
"@aws-sdk/client-ses": "^3.550.0",
"@aws-sdk/types": "^3.347.0",
"@azure/communication-email": "^1.0.0",
"@azure/identity": "^4.0.0",
"@backstage/backend-plugin-api": "workspace:^",
@@ -1,17 +1,3 @@
# Knip report
## Unused dependencies (4)
| Name | Location | Severity |
| :---------------------------- | :----------- | :------- |
| @backstage/plugin-events-node | plugins/notifications-backend/package.json | error |
| @backstage/plugin-auth-node | plugins/notifications-backend/package.json | error |
| winston | plugins/notifications-backend/package.json | error |
| yn | plugins/notifications-backend/package.json | error |
## Unused devDependencies (1)
| Name | Location | Severity |
| :-- | :----------- | :------- |
| msw | plugins/notifications-backend/package.json | error |
+1 -6
View File
@@ -43,9 +43,7 @@
"@backstage/catalog-model": "workspace:^",
"@backstage/config": "workspace:^",
"@backstage/errors": "workspace:^",
"@backstage/plugin-auth-node": "workspace:^",
"@backstage/plugin-catalog-node": "workspace:^",
"@backstage/plugin-events-node": "workspace:^",
"@backstage/plugin-notifications-common": "workspace:^",
"@backstage/plugin-notifications-node": "workspace:^",
"@backstage/plugin-signals-node": "workspace:^",
@@ -54,9 +52,7 @@
"express-promise-router": "^4.1.0",
"knex": "^3.0.0",
"p-throttle": "^4.1.1",
"uuid": "^11.0.0",
"winston": "^3.2.1",
"yn": "^4.0.0"
"uuid": "^11.0.0"
},
"devDependencies": {
"@backstage/backend-defaults": "workspace:^",
@@ -68,7 +64,6 @@
"@backstage/plugin-signals-backend": "workspace:^",
"@types/express": "^4.17.6",
"@types/supertest": "^2.0.8",
"msw": "^1.0.0",
"supertest": "^7.0.0"
},
"configSchema": "config.d.ts"
-13
View File
@@ -1,16 +1,3 @@
# Knip report
## Unused dependencies (2)
| Name | Location | Severity |
| :--------------- | :----------- | :------- |
| @backstage/types | plugins/notifications/package.json | error |
| @material-ui/lab | plugins/notifications/package.json | error |
## Unused devDependencies (2)
| Name | Location | Severity |
| :-------------------------- | :----------- | :------- |
| @testing-library/user-event | plugins/notifications/package.json | error |
| @backstage/core-app-api | plugins/notifications/package.json | error |
-4
View File
@@ -59,10 +59,8 @@
"@backstage/plugin-notifications-common": "workspace:^",
"@backstage/plugin-signals-react": "workspace:^",
"@backstage/theme": "workspace:^",
"@backstage/types": "workspace:^",
"@material-ui/core": "^4.9.13",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.61",
"lodash": "^4.17.21",
"material-ui-confirm": "^3.0.12",
"notistack": "^3.0.1",
@@ -71,13 +69,11 @@
},
"devDependencies": {
"@backstage/cli": "workspace:^",
"@backstage/core-app-api": "workspace:^",
"@backstage/dev-utils": "workspace:^",
"@backstage/plugin-signals": "workspace:^",
"@backstage/test-utils": "workspace:^",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.0.0",
"@types/react": "^18.0.0",
"msw": "^1.0.0",
"react": "^18.0.2",
@@ -1,8 +1,3 @@
# Knip report
## Unused dependencies (1)
| Name | Location | Severity |
| :-- | :----------- | :------- |
| zod | plugins/scaffolder-backend-module-bitbucket-server/package.json | error |
@@ -48,8 +48,7 @@
"@backstage/integration": "workspace:^",
"@backstage/plugin-scaffolder-node": "workspace:^",
"fs-extra": "^11.2.0",
"yaml": "^2.0.0",
"zod": "^3.22.4"
"yaml": "^2.0.0"
},
"devDependencies": {
"@backstage/backend-test-utils": "workspace:^",
@@ -1,8 +1,3 @@
# Knip report
## Unused dependencies (1)
| Name | Location | Severity |
| :------ | :----------- | :------- |
| winston | plugins/scaffolder-backend-module-gitlab/package.json | error |
@@ -53,7 +53,6 @@
"@gitbeaker/requester-utils": "^41.2.0",
"@gitbeaker/rest": "^41.2.0",
"luxon": "^3.0.0",
"winston": "^3.2.1",
"yaml": "^2.0.0",
"zod": "^3.22.4"
},
-12
View File
@@ -5715,7 +5715,6 @@ __metadata:
resolution: "@backstage/plugin-notifications-backend-module-email@workspace:plugins/notifications-backend-module-email"
dependencies:
"@aws-sdk/client-ses": "npm:^3.550.0"
"@aws-sdk/types": "npm:^3.347.0"
"@azure/communication-email": "npm:^1.0.0"
"@azure/identity": "npm:^4.0.0"
"@backstage/backend-plugin-api": "workspace:^"
@@ -5775,10 +5774,8 @@ __metadata:
"@backstage/errors": "workspace:^"
"@backstage/plugin-auth-backend": "workspace:^"
"@backstage/plugin-auth-backend-module-guest-provider": "workspace:^"
"@backstage/plugin-auth-node": "workspace:^"
"@backstage/plugin-catalog-node": "workspace:^"
"@backstage/plugin-events-backend": "workspace:^"
"@backstage/plugin-events-node": "workspace:^"
"@backstage/plugin-notifications-common": "workspace:^"
"@backstage/plugin-notifications-node": "workspace:^"
"@backstage/plugin-signals-backend": "workspace:^"
@@ -5789,12 +5786,9 @@ __metadata:
express: "npm:^4.17.1"
express-promise-router: "npm:^4.1.0"
knex: "npm:^3.0.0"
msw: "npm:^1.0.0"
p-throttle: "npm:^4.1.1"
supertest: "npm:^7.0.0"
uuid: "npm:^11.0.0"
winston: "npm:^3.2.1"
yn: "npm:^4.0.0"
languageName: unknown
linkType: soft
@@ -5832,7 +5826,6 @@ __metadata:
resolution: "@backstage/plugin-notifications@workspace:plugins/notifications"
dependencies:
"@backstage/cli": "workspace:^"
"@backstage/core-app-api": "workspace:^"
"@backstage/core-compat-api": "workspace:^"
"@backstage/core-components": "workspace:^"
"@backstage/core-plugin-api": "workspace:^"
@@ -5844,13 +5837,10 @@ __metadata:
"@backstage/plugin-signals-react": "workspace:^"
"@backstage/test-utils": "workspace:^"
"@backstage/theme": "workspace:^"
"@backstage/types": "workspace:^"
"@material-ui/core": "npm:^4.9.13"
"@material-ui/icons": "npm:^4.9.1"
"@material-ui/lab": "npm:^4.0.0-alpha.61"
"@testing-library/jest-dom": "npm:^6.0.0"
"@testing-library/react": "npm:^16.0.0"
"@testing-library/user-event": "npm:^14.0.0"
"@types/react": "npm:^18.0.0"
lodash: "npm:^4.17.21"
material-ui-confirm: "npm:^3.0.12"
@@ -6147,7 +6137,6 @@ __metadata:
fs-extra: "npm:^11.2.0"
msw: "npm:^1.0.0"
yaml: "npm:^2.0.0"
zod: "npm:^3.22.4"
languageName: unknown
linkType: soft
@@ -6307,7 +6296,6 @@ __metadata:
"@gitbeaker/requester-utils": "npm:^41.2.0"
"@gitbeaker/rest": "npm:^41.2.0"
luxon: "npm:^3.0.0"
winston: "npm:^3.2.1"
yaml: "npm:^2.0.0"
zod: "npm:^3.22.4"
languageName: unknown