Skip to content

Commit bb3f145

Browse files
committed
OCPBUGS-68557: Resolve all missing peerDeps warnings
1 parent fa1c6a5 commit bb3f145

File tree

4 files changed

+1999
-796
lines changed

4 files changed

+1999
-796
lines changed

integration-tests/plugins/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import * as wp from '@cypress/webpack-preprocessor';
22

3-
module.exports = (on, config) => {
3+
module.exports = (
4+
on: Cypress.PluginEvents,
5+
config: Cypress.PluginConfigOptions,
6+
): Cypress.PluginConfigOptions => {
47
const options = {
58
webpackOptions: {
69
resolve: {

integration-tests/tests/example-page.cy.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import { checkErrors } from '../support';
22

33
const PLUGIN_TEMPLATE_NAME = 'console-plugin-template';
44
const PLUGIN_TEMPLATE_PULL_SPEC = Cypress.env('PLUGIN_TEMPLATE_PULL_SPEC');
5-
export const isLocalDevEnvironment = Cypress.config('baseUrl').includes('localhost');
5+
// We know that the baseUrl is always set because it's in the cypress config
6+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
7+
export const isLocalDevEnvironment = Cypress.config('baseUrl')!.includes('localhost');
68

79
export const guidedTour = {
810
close: () => {

package.json

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,32 @@
2424
"webpack": "node -r ts-node/register ./node_modules/.bin/webpack"
2525
},
2626
"devDependencies": {
27+
"@babel/core": "^7.28.5",
28+
"@babel/preset-env": "^7.28.5",
2729
"@cypress/webpack-preprocessor": "^7.0.2",
2830
"@openshift-console/dynamic-plugin-sdk": "4.19.1",
2931
"@openshift-console/dynamic-plugin-sdk-webpack": "4.19.0",
3032
"@patternfly/react-core": "^6.2.2",
3133
"@patternfly/react-icons": "^6.2.2",
3234
"@patternfly/react-table": "^6.2.2",
33-
"@types/node": "^18.0.0",
35+
"@types/node": "^22.0.0",
3436
"@types/react": "^17.0.37",
3537
"@types/react-router-dom": "^5.3.3",
3638
"@typescript-eslint/eslint-plugin": "^5.62.0",
3739
"@typescript-eslint/parser": "^5.62.0",
40+
"babel-loader": "^10.0.0",
3841
"copy-webpack-plugin": "^13.0.1",
39-
"css-loader": "^6.7.1",
42+
"css-loader": "^7.1.2",
4043
"cypress": "^14.2.1",
4144
"cypress-multi-reporters": "^1.6.2",
4245
"eslint": "^8.10.0",
4346
"eslint-config-prettier": "^8.5.0",
4447
"eslint-plugin-cypress": "^2.12.1",
4548
"eslint-plugin-prettier": "^4.0.0",
4649
"eslint-plugin-react": "^7.29.1",
47-
"i18next-parser": "^3.11.0",
50+
"i18next": "^23.11.5",
51+
"i18next-parser": "^9.3.0",
52+
"mocha": "^10.2.0",
4853
"mocha-junit-reporter": "^2.2.1",
4954
"mochawesome": "^7.1.4",
5055
"mochawesome-merge": "^4.3.0",
@@ -55,16 +60,17 @@
5560
"react-dom": "^17.0.1",
5661
"react-i18next": "^11.7.3",
5762
"react-router": "5.3.x",
63+
"react-router-dom": "5.3.x",
5864
"react-router-dom-v5-compat": "^6.11.2",
59-
"style-loader": "^3.3.1",
60-
"stylelint": "^15.3.0",
61-
"stylelint-config-standard": "^31.0.0",
62-
"ts-loader": "^9.3.1",
65+
"style-loader": "^4.0.0",
66+
"stylelint": "^16.25.0",
67+
"stylelint-config-standard": "^39.0.1",
68+
"ts-loader": "^9.5.4",
6369
"ts-node": "^10.9.2",
6470
"typescript": "^5.9.3",
6571
"webpack": "^5.75.0",
66-
"webpack-cli": "^5.1.4",
67-
"webpack-dev-server": "^5.1.0"
72+
"webpack-cli": "^6.0.1",
73+
"webpack-dev-server": "^5.2.2"
6874
},
6975
"consolePlugin": {
7076
"name": "console-plugin-template",
@@ -77,12 +83,5 @@
7783
"dependencies": {
7884
"@console/pluginAPI": "^4.19.0"
7985
}
80-
},
81-
"peerDependencies": {
82-
"@babel/core": "^7.0.1",
83-
"@babel/preset-env": "^7.0.0",
84-
"babel-loader": "^8.0.2",
85-
"i18next": "^23.11.5",
86-
"mocha": "^10.5.1"
8786
}
8887
}

0 commit comments

Comments
 (0)