f2bf4c2e50
* fix: add explicit dev dependencies and fix React test environment - Add react, react-dom, vitest, jsdom, and testing-library as explicit devDependencies instead of relying on transitive deps from @kinvolk/headlamp-plugin - Add peerDependencies for react/react-dom - Set process.env.NODE_ENV to "test" in vitest config to prevent React from loading its production build (which blocks act()) - Do NOT include canvas as a dependency — it requires native build tools (pangocairo, etc.) not present in the CI node:22 container Fixes CI install failures from prior PR #10 which included canvas. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: add react-router-dom devDep and remove unused vite types - Add react-router-dom as explicit devDependency to fix ServicesPage.test.tsx import resolution failure - Remove vite/client and vite-plugin-svgr/client from tsconfig types (not needed, aligns with polaris plugin pattern) Addresses QA review feedback on PR#11. --------- Co-authored-by: gandalf-the-greybeard[bot] <gandalf-the-greybeard[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
43 lines
1.3 KiB
JSON
43 lines
1.3 KiB
JSON
{
|
|
"name": "kube-vip",
|
|
"version": "0.1.3",
|
|
"description": "Headlamp plugin for kube-vip virtual IP and load balancer visibility",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/privilegedescalation/headlamp-kube-vip-plugin.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/privilegedescalation/headlamp-kube-vip-plugin/issues"
|
|
},
|
|
"homepage": "https://github.com/privilegedescalation/headlamp-kube-vip-plugin#readme",
|
|
"author": "privilegedescalation",
|
|
"license": "Apache-2.0",
|
|
"scripts": {
|
|
"start": "headlamp-plugin start",
|
|
"build": "headlamp-plugin build",
|
|
"package": "headlamp-plugin package",
|
|
"tsc": "tsc --noEmit",
|
|
"lint": "eslint --ext .ts,.tsx src/",
|
|
"lint:fix": "eslint --ext .ts,.tsx --fix src/",
|
|
"format": "prettier --write src/",
|
|
"format:check": "prettier --check src/",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^18.0.0",
|
|
"react-dom": "^18.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@kinvolk/headlamp-plugin": "^0.13.0",
|
|
"@testing-library/jest-dom": "^6.4.8",
|
|
"@testing-library/react": "^16.0.0",
|
|
"@testing-library/user-event": "^14.5.2",
|
|
"jsdom": "^24.0.0",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-router-dom": "^5.3.0",
|
|
"vitest": "^3.0.5"
|
|
}
|
|
}
|