mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-09 03:17:54 +00:00
Step 2 of the iterative vite 5 -> 8 migration. Tightens engines.node to satisfy vite 7's require(esm) floor; no vite.config.ts edits. Changes: - vite ^6.4.2 -> ^7.3.2 - @vitejs/plugin-react ^5.1.0 -> ^5.1.4 (npm picked 5.2.0 within ^5.1.4, which already lists vite ^8 as a peer -> iter 3 won't need to re-bump) - gitnexus-web engines.node: >=20.0.0 -> ^20.19.0 || >=22.12.0 (vite 7 requirement; gitnexus CLI engines untouched since CLI doesn't use vite) - .github/actions/setup-gitnexus-web: pin node-version to '20.19.0' so we don't depend on the floating "20" alias resolving to a high enough patch. CLI-side actions stay on '20'. Why no other config changes: vite 7's removed surfaces (sass legacy API, splitVendorChunkPlugin, transformIndexHtml.transform, optimizeDeps.entries glob semantics, CORS middleware order) are not used here. The five resolve.alias entries (@, @shared, gitnexus-shared, anthropic deep import, mermaid ESM) keep working - alias plugin precedence is unchanged. Verified locally (Node v22.14.0, well above the new floor): - npm install: clean, no peer warnings - npx tsc -b --noEmit: clean - npm test: 220/220 pass - npm run build: clean (11.41s, dist tree shape identical, hashes shifted as expected because vite 7 changed default build.target from 'modules' to 'baseline-widely-available' - bundle is 1-4% smaller) Iter 3 (vite 8) will follow once this bakes on main. Made-with: Cursor
77 lines
2.2 KiB
JSON
77 lines
2.2 KiB
JSON
{
|
|
"name": "gitnexus",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"engines": {
|
|
"node": "^20.19.0 || >=22.12.0"
|
|
},
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"preview": "vite preview",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:ui": "playwright test --ui",
|
|
"test:e2e:report": "playwright show-report"
|
|
},
|
|
"dependencies": {
|
|
"gitnexus-shared": "file:../gitnexus-shared",
|
|
"@langchain/anthropic": "^1.3.10",
|
|
"@langchain/core": "^1.1.15",
|
|
"@langchain/google-genai": "^2.1.10",
|
|
"@langchain/langgraph": "^1.1.0",
|
|
"@langchain/ollama": "^1.2.0",
|
|
"@langchain/openai": "^1.2.2",
|
|
"@sigma/edge-curve": "^3.1.0",
|
|
"@tailwindcss/vite": "^4.1.18",
|
|
"axios": "^1.13.2",
|
|
"d3": "^7.9.0",
|
|
"dompurify": "^3.3.3",
|
|
"graphology": "^0.26.0",
|
|
"graphology-indices": "^0.17.0",
|
|
"graphology-layout-force": "^0.2.4",
|
|
"graphology-layout-forceatlas2": "^0.10.1",
|
|
"graphology-layout-noverlap": "^0.4.2",
|
|
"graphology-utils": "^2.3.0",
|
|
"langchain": "^1.2.10",
|
|
"lru-cache": "^11.2.4",
|
|
"lucide-react": "^0.562.0",
|
|
"mermaid": "^11.14.0",
|
|
"mnemonist": "^0.39.0",
|
|
"pandemonium": "^2.4.0",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-markdown": "^10.1.0",
|
|
"react-syntax-highlighter": "^16.1.0",
|
|
"react-zoom-pan-pinch": "^3.7.0",
|
|
"remark-gfm": "^4.0.1",
|
|
"sigma": "^3.0.2",
|
|
"tailwindcss": "^4.2.2",
|
|
"uuid": "^13.0.0",
|
|
"zod": "^3.25.76"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/types": "^7.29.0",
|
|
"@playwright/test": "^1.58.2",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/dompurify": "^3.0.5",
|
|
"@types/node": "^24.10.1",
|
|
"@types/react": "^18.3.5",
|
|
"@types/react-dom": "^18.3.0",
|
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
"@vercel/node": "^5.5.16",
|
|
"@vitejs/plugin-react": "^5.1.4",
|
|
"@vitest/coverage-v8": "^3.2.4",
|
|
"jsdom": "^29.0.2",
|
|
"tree-sitter-wasms": "^0.1.13",
|
|
"typescript": "^5.4.5",
|
|
"vite": "^7.3.2",
|
|
"vitest": "^3.2.4",
|
|
"wait-on": "^9.0.5"
|
|
}
|
|
}
|