Skip to content

Commit aa9b548

Browse files
committed
fix(jenkins): remove unused dependencies per knip report
1 parent 6836ad6 commit aa9b548

File tree

13 files changed

+81
-123
lines changed

13 files changed

+81
-123
lines changed

workspaces/jenkins/bcp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"autoVersionBump": true,
3-
"knipReports": false
3+
"knipReports": true
44
}

workspaces/jenkins/packages/app-next/knip-report.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@
22

33
## Unused dependencies (14)
44

5-
| Name | Location | Severity |
6-
| :------------------------------- | :----------- | :------- |
7-
| @backstage/plugin-catalog-common | package.json | error |
8-
| @backstage/plugin-catalog-graph | package.json | error |
9-
| @backstage/plugin-catalog-react | package.json | error |
10-
| @backstage/frontend-app-api | package.json | error |
11-
| @backstage/core-components | package.json | error |
12-
| @backstage/core-plugin-api | package.json | error |
13-
| @backstage/catalog-model | package.json | error |
14-
| @backstage/app-defaults | package.json | error |
15-
| @backstage/plugin-org | package.json | error |
16-
| @material-ui/icons | package.json | error |
17-
| @material-ui/core | package.json | error |
18-
| styled-components | package.json | error |
19-
| react-use | package.json | error |
20-
| history | package.json | error |
5+
| Name | Location | Severity |
6+
| :------------------------------- | :---------------- | :------- |
7+
| @backstage/plugin-catalog-common | package.json:36:6 | error |
8+
| @backstage/plugin-catalog-graph | package.json:37:6 | error |
9+
| @backstage/plugin-catalog-react | package.json:39:6 | error |
10+
| @backstage/frontend-app-api | package.json:30:6 | error |
11+
| @backstage/core-components | package.json:28:6 | error |
12+
| @backstage/core-plugin-api | package.json:29:6 | error |
13+
| @backstage/catalog-model | package.json:24:6 | error |
14+
| @backstage/app-defaults | package.json:23:6 | error |
15+
| @backstage/plugin-org | package.json:40:6 | error |
16+
| @material-ui/icons | package.json:44:6 | error |
17+
| @material-ui/core | package.json:43:6 | error |
18+
| styled-components | package.json:51:6 | error |
19+
| react-use | package.json:50:6 | error |
20+
| history | package.json:45:6 | error |
2121

2222
## Unused devDependencies (4)
2323

24-
| Name | Location | Severity |
25-
| :-------------------------- | :----------- | :------- |
26-
| @testing-library/user-event | package.json | error |
27-
| @testing-library/dom | package.json | error |
28-
| @playwright/test | package.json | error |
29-
| cross-env | package.json | error |
24+
| Name | Location | Severity |
25+
| :-------------------------- | :---------------- | :------- |
26+
| @testing-library/user-event | package.json:59:6 | error |
27+
| @testing-library/dom | package.json:56:6 | error |
28+
| @playwright/test | package.json:55:6 | error |
29+
| cross-env | package.json:61:6 | error |

workspaces/jenkins/packages/app-next/package.json

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,45 +20,27 @@
2020
},
2121
"dependencies": {
2222
"@backstage-community/plugin-jenkins": "workspace:^",
23-
"@backstage/app-defaults": "backstage:^",
24-
"@backstage/catalog-model": "backstage:^",
2523
"@backstage/cli": "backstage:^",
2624
"@backstage/core-app-api": "backstage:^",
2725
"@backstage/core-compat-api": "backstage:^",
28-
"@backstage/core-components": "backstage:^",
29-
"@backstage/core-plugin-api": "backstage:^",
30-
"@backstage/frontend-app-api": "backstage:^",
3126
"@backstage/frontend-defaults": "backstage:^",
3227
"@backstage/frontend-plugin-api": "backstage:^",
3328
"@backstage/integration-react": "backstage:^",
3429
"@backstage/plugin-api-docs": "backstage:^",
3530
"@backstage/plugin-catalog": "backstage:^",
36-
"@backstage/plugin-catalog-common": "backstage:^",
37-
"@backstage/plugin-catalog-graph": "backstage:^",
3831
"@backstage/plugin-catalog-import": "backstage:^",
39-
"@backstage/plugin-catalog-react": "backstage:^",
40-
"@backstage/plugin-org": "backstage:^",
4132
"@backstage/plugin-user-settings": "backstage:^",
4233
"@backstage/theme": "backstage:^",
43-
"@material-ui/core": "^4.12.2",
44-
"@material-ui/icons": "^4.9.1",
45-
"history": "^5.0.0",
4634
"react": "^18.0.2",
4735
"react-dom": "^18.0.2",
4836
"react-router": "^6.3.0",
49-
"react-router-dom": "^6.3.0",
50-
"react-use": "^17.2.4",
51-
"styled-components": "^6.1.8"
37+
"react-router-dom": "^6.3.0"
5238
},
5339
"devDependencies": {
5440
"@backstage/test-utils": "backstage:^",
55-
"@playwright/test": "^1.32.3",
56-
"@testing-library/dom": "^9.0.0",
5741
"@testing-library/jest-dom": "^6.0.0",
5842
"@testing-library/react": "^14.0.0",
59-
"@testing-library/user-event": "^14.0.0",
60-
"@types/react-dom": "*",
61-
"cross-env": "^10.0.0"
43+
"@types/react-dom": "*"
6244
},
6345
"browserslist": {
6446
"production": [

workspaces/jenkins/packages/app/knip-report.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
## Unused dependencies (3)
44

5-
| Name | Location | Severity |
6-
| :----------- | :----------- | :------- |
7-
| react-router | package.json | error |
8-
| react-use | package.json | error |
9-
| history | package.json | error |
5+
| Name | Location | Severity |
6+
| :----------- | :---------------- | :------- |
7+
| react-router | package.json:51:6 | error |
8+
| react-use | package.json:53:6 | error |
9+
| history | package.json:48:6 | error |
1010

1111
## Unused devDependencies (4)
1212

13-
| Name | Location | Severity |
14-
| :-------------------------- | :----------- | :------- |
15-
| @testing-library/user-event | package.json | error |
16-
| @backstage/test-utils | package.json | error |
17-
| @testing-library/dom | package.json | error |
18-
| cross-env | package.json | error |
13+
| Name | Location | Severity |
14+
| :-------------------------- | :---------------- | :------- |
15+
| @testing-library/user-event | package.json:61:6 | error |
16+
| @backstage/test-utils | package.json:56:6 | error |
17+
| @testing-library/dom | package.json:58:6 | error |
18+
| cross-env | package.json:63:6 | error |

workspaces/jenkins/packages/app/package.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,15 @@
4545
"@backstage/theme": "backstage:^",
4646
"@material-ui/core": "^4.12.2",
4747
"@material-ui/icons": "^4.9.1",
48-
"history": "^5.0.0",
4948
"react": "^18.0.2",
5049
"react-dom": "^18.0.2",
51-
"react-router": "^6.3.0",
52-
"react-router-dom": "^6.3.0",
53-
"react-use": "^17.2.4"
50+
"react-router-dom": "^6.3.0"
5451
},
5552
"devDependencies": {
56-
"@backstage/test-utils": "backstage:^",
5753
"@playwright/test": "^1.32.3",
58-
"@testing-library/dom": "^9.0.0",
5954
"@testing-library/jest-dom": "^6.0.0",
6055
"@testing-library/react": "^14.0.0",
61-
"@testing-library/user-event": "^14.0.0",
62-
"@types/react-dom": "*",
63-
"cross-env": "^10.0.0"
56+
"@types/react-dom": "*"
6457
},
6558
"browserslist": {
6659
"production": [

workspaces/jenkins/packages/backend/knip-report.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@
22

33
## Unused dependencies (12)
44

5-
| Name | Location | Severity |
6-
| :---------------------------------------------------- | :----------- | :------- |
7-
| @backstage/plugin-auth-backend-module-github-provider | package.json | error |
8-
| @backstage/plugin-search-backend-node | package.json | error |
9-
| @backstage/plugin-permission-common | package.json | error |
10-
| @backstage/plugin-permission-node | package.json | error |
11-
| @backstage/plugin-auth-node | package.json | error |
12-
| @backstage/config | package.json | error |
13-
| better-sqlite3 | package.json | error |
14-
| dockerode | package.json | error |
15-
| node-gyp | package.json | error |
16-
| winston | package.json | error |
17-
| app | package.json | error |
18-
| pg | package.json | error |
5+
| Name | Location | Severity |
6+
| :---------------------------------------------------- | :---------------- | :------- |
7+
| @backstage/plugin-auth-backend-module-github-provider | package.json:29:6 | error |
8+
| @backstage/plugin-search-backend-node | package.json:43:6 | error |
9+
| @backstage/plugin-permission-common | package.json:36:6 | error |
10+
| @backstage/plugin-permission-node | package.json:37:6 | error |
11+
| @backstage/plugin-auth-node | package.json:31:6 | error |
12+
| @backstage/config | package.json:26:6 | error |
13+
| better-sqlite3 | package.json:46:6 | error |
14+
| dockerode | package.json:47:6 | error |
15+
| node-gyp | package.json:48:6 | error |
16+
| winston | package.json:50:6 | error |
17+
| app | package.json:45:6 | error |
18+
| pg | package.json:49:6 | error |
1919

2020
## Unused devDependencies (4)
2121

22-
| Name | Location | Severity |
23-
| :------------------------------- | :----------- | :------- |
24-
| @types/express-serve-static-core | package.json | error |
25-
| @types/dockerode | package.json | error |
26-
| @types/express | package.json | error |
27-
| @types/luxon | package.json | error |
22+
| Name | Location | Severity |
23+
| :------------------------------- | :---------------- | :------- |
24+
| @types/express-serve-static-core | package.json:56:6 | error |
25+
| @types/dockerode | package.json:54:6 | error |
26+
| @types/express | package.json:55:6 | error |
27+
| @types/luxon | package.json:57:6 | error |

workspaces/jenkins/packages/backend/package.json

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,38 +23,22 @@
2323
"dependencies": {
2424
"@backstage-community/plugin-jenkins-backend": "workspace:^",
2525
"@backstage/backend-defaults": "backstage:^",
26-
"@backstage/config": "backstage:^",
2726
"@backstage/plugin-app-backend": "backstage:^",
2827
"@backstage/plugin-auth-backend": "backstage:^",
29-
"@backstage/plugin-auth-backend-module-github-provider": "backstage:^",
3028
"@backstage/plugin-auth-backend-module-guest-provider": "backstage:^",
31-
"@backstage/plugin-auth-node": "backstage:^",
3229
"@backstage/plugin-catalog-backend": "backstage:^",
3330
"@backstage/plugin-catalog-backend-module-scaffolder-entity-model": "backstage:^",
3431
"@backstage/plugin-permission-backend": "backstage:^",
3532
"@backstage/plugin-permission-backend-module-allow-all-policy": "backstage:^",
36-
"@backstage/plugin-permission-common": "backstage:^",
37-
"@backstage/plugin-permission-node": "backstage:^",
3833
"@backstage/plugin-proxy-backend": "backstage:^",
3934
"@backstage/plugin-scaffolder-backend": "backstage:^",
4035
"@backstage/plugin-search-backend": "backstage:^",
4136
"@backstage/plugin-search-backend-module-catalog": "backstage:^",
4237
"@backstage/plugin-search-backend-module-techdocs": "backstage:^",
43-
"@backstage/plugin-search-backend-node": "backstage:^",
44-
"@backstage/plugin-techdocs-backend": "backstage:^",
45-
"app": "link:../app",
46-
"better-sqlite3": "^9.0.0",
47-
"dockerode": "^3.3.1",
48-
"node-gyp": "^9.0.0",
49-
"pg": "^8.11.3",
50-
"winston": "^3.2.1"
38+
"@backstage/plugin-techdocs-backend": "backstage:^"
5139
},
5240
"devDependencies": {
53-
"@backstage/cli": "backstage:^",
54-
"@types/dockerode": "^3.3.0",
55-
"@types/express": "^4.17.6",
56-
"@types/express-serve-static-core": "^4.17.5",
57-
"@types/luxon": "^3.0.0"
41+
"@backstage/cli": "backstage:^"
5842
},
5943
"files": [
6044
"dist"

workspaces/jenkins/plugins/jenkins-backend/knip-report.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
## Unused dependencies (1)
44

5-
| Name | Location | Severity |
6-
| :--- | :----------- | :------- |
7-
| yn | package.json | error |
5+
| Name | Location | Severity |
6+
| :--- | :---------------- | :------- |
7+
| yn | package.json:57:6 | error |
88

99
## Unused devDependencies (3)
1010

11-
| Name | Location | Severity |
12-
| :--------------------------------------------------- | :----------- | :------- |
13-
| @backstage/plugin-auth-backend-module-guest-provider | package.json | error |
14-
| @backstage/plugin-auth-backend | package.json | error |
15-
| @types/supertest | package.json | error |
11+
| Name | Location | Severity |
12+
| :--------------------------------------------------- | :---------------- | :------- |
13+
| @backstage/plugin-auth-backend-module-guest-provider | package.json:63:6 | error |
14+
| @backstage/plugin-auth-backend | package.json:62:6 | error |
15+
| @types/supertest | package.json:66:6 | error |

workspaces/jenkins/plugins/jenkins-backend/package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,13 @@
5353
"express": "^4.17.1",
5454
"express-promise-router": "^4.1.0",
5555
"jenkins": "^1.0.0",
56-
"node-fetch": "^2.6.7",
57-
"yn": "^4.0.0"
56+
"node-fetch": "^2.6.7"
5857
},
5958
"devDependencies": {
6059
"@backstage/backend-test-utils": "backstage:^",
6160
"@backstage/cli": "backstage:^",
62-
"@backstage/plugin-auth-backend": "backstage:^",
63-
"@backstage/plugin-auth-backend-module-guest-provider": "backstage:^",
6461
"@types/jenkins": "^1.0.0",
65-
"@types/node-fetch": "^2.5.12",
66-
"@types/supertest": "^6.0.0"
62+
"@types/node-fetch": "^2.5.12"
6763
},
6864
"configSchema": "config.d.ts"
6965
}

workspaces/jenkins/plugins/jenkins/knip-report.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Unused devDependencies (2)
44

5-
| Name | Location | Severity |
6-
| :------------------- | :----------- | :------- |
7-
| @testing-library/dom | package.json | error |
8-
| canvas | package.json | error |
5+
| Name | Location | Severity |
6+
| :--------------------------------- | :---------------- | :------- |
7+
| @types/testing-library\_\_jest-dom | package.json:82:6 | error |
8+
| @testing-library/dom | package.json:78:6 | error |

0 commit comments

Comments
 (0)