소스 검색

OCPBUGS-68557: Resolve all missing `peerDeps` warnings

logonoff 10 달 전
부모
커밋
3b9094215d
4개의 변경된 파일979개의 추가작업 그리고 40개의 파일을 삭제
  1. 4 1
      integration-tests/plugins/index.ts
  2. 3 1
      integration-tests/tests/example-page.cy.ts
  3. 15 16
      package.json
  4. 957 22
      yarn.lock

+ 4 - 1
integration-tests/plugins/index.ts

@@ -1,6 +1,9 @@
 import * as wp from '@cypress/webpack-preprocessor';
 
-module.exports = (on, config) => {
+module.exports = (
+  on: Cypress.PluginEvents,
+  config: Cypress.PluginConfigOptions,
+): Cypress.PluginConfigOptions => {
   const options = {
     webpackOptions: {
       resolve: {

+ 3 - 1
integration-tests/tests/example-page.cy.ts

@@ -2,7 +2,9 @@ import { checkErrors } from '../support';
 
 const PLUGIN_TEMPLATE_NAME = 'console-plugin-template';
 const PLUGIN_TEMPLATE_PULL_SPEC = Cypress.env('PLUGIN_TEMPLATE_PULL_SPEC');
-export const isLocalDevEnvironment = Cypress.config('baseUrl').includes('localhost');
+// We know that the baseUrl is always set because it's in the cypress config
+// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+export const isLocalDevEnvironment = Cypress.config('baseUrl')!.includes('localhost');
 
 const installHelmChart = (path: string) => {
   cy.exec(

+ 15 - 16
package.json

@@ -24,19 +24,22 @@
     "webpack": "node -r ts-node/register ./node_modules/.bin/webpack"
   },
   "devDependencies": {
+    "@babel/core": "^7.28.5",
+    "@babel/preset-env": "^7.28.5",
     "@cypress/webpack-preprocessor": "^7.0.2",
     "@openshift-console/dynamic-plugin-sdk": "4.19.1",
     "@openshift-console/dynamic-plugin-sdk-webpack": "4.19.0",
     "@patternfly/react-core": "^6.2.2",
     "@patternfly/react-icons": "^6.2.2",
     "@patternfly/react-table": "^6.2.2",
-    "@types/node": "^18.0.0",
+    "@types/node": "^22.0.0",
     "@types/react": "^17.0.37",
     "@types/react-router-dom": "^5.3.3",
     "@typescript-eslint/eslint-plugin": "^5.62.0",
     "@typescript-eslint/parser": "^5.62.0",
+    "babel-loader": "^10.0.0",
     "copy-webpack-plugin": "^13.0.1",
-    "css-loader": "^6.7.1",
+    "css-loader": "^7.1.2",
     "cypress": "^14.2.1",
     "cypress-multi-reporters": "^1.6.2",
     "eslint": "^8.10.0",
@@ -44,7 +47,9 @@
     "eslint-plugin-cypress": "^2.12.1",
     "eslint-plugin-prettier": "^4.0.0",
     "eslint-plugin-react": "^7.29.1",
-    "i18next-parser": "^3.11.0",
+    "i18next": "^23.11.5",
+    "i18next-parser": "^9.3.0",
+    "mocha": "^10.2.0",
     "mocha-junit-reporter": "^2.2.1",
     "mochawesome": "^7.1.4",
     "mochawesome-merge": "^4.3.0",
@@ -55,16 +60,17 @@
     "react-dom": "^17.0.1",
     "react-i18next": "^11.7.3",
     "react-router": "5.3.x",
+    "react-router-dom": "5.3.x",
     "react-router-dom-v5-compat": "^6.11.2",
-    "style-loader": "^3.3.1",
-    "stylelint": "^15.3.0",
-    "stylelint-config-standard": "^31.0.0",
-    "ts-loader": "^9.3.1",
+    "style-loader": "^4.0.0",
+    "stylelint": "^16.25.0",
+    "stylelint-config-standard": "^39.0.1",
+    "ts-loader": "^9.5.4",
     "ts-node": "^10.9.2",
     "typescript": "^5.9.3",
     "webpack": "^5.75.0",
-    "webpack-cli": "^5.1.4",
-    "webpack-dev-server": "^5.1.0"
+    "webpack-cli": "^6.0.1",
+    "webpack-dev-server": "^5.2.2"
   },
   "consolePlugin": {
     "name": "console-plugin-template",
@@ -77,12 +83,5 @@
     "dependencies": {
       "@console/pluginAPI": "^4.19.0"
     }
-  },
-  "peerDependencies": {
-    "@babel/core": "^7.0.1",
-    "@babel/preset-env": "^7.0.0",
-    "babel-loader": "^8.0.2",
-    "i18next": "^23.11.5",
-    "mocha": "^10.5.1"
   }
 }

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 957 - 22
yarn.lock


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.