The Vite 4 conversion predates the stack the other converted sites settled on. Bring it in line without changing any URL. - Vite 4 with SWC -> Vite 8, React 18 -> 19, TypeScript 5 -> 7, react-router-dom v6 -> react-router v8 - swap axios -> ky, moment -> date-fns and react-helmet-async -> @dr.pogodin/react-helmet, and replace react-router-hash-link and react-spinner-material with local code - drop xregexp, react-app-polyfill and the node polyfill and rewrite-all plugins - mount ../static-contents with sirv in the dev and preview servers, and split vendor-react from vendor-misc - keep sanitize.css: the theme was written on top of it, and swapping it for modern-normalize moves nearly every element - replace ESLint and Prettier with Biome and fix what it reports: stable list keys, button types, the shadowed escape/unescape helpers and the unused LinkImage component
44 lines
1.2 KiB
JSON
44 lines
1.2 KiB
JSON
{
|
|
"name": "brainatlas",
|
|
"version": "2.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"preview": "vite preview",
|
|
"lint": "biome lint",
|
|
"format": "biome format --write",
|
|
"check": "biome check --write"
|
|
},
|
|
"dependencies": {
|
|
"@dr.pogodin/react-helmet": "^3.2.3",
|
|
"@orrisroot/react-html-parser": "^3.0.1",
|
|
"async-lock": "^1.4.1",
|
|
"date-fns": "^4.4.0",
|
|
"ky": "^2.1.0",
|
|
"lokijs": "^1.5.12",
|
|
"rc-tree": "^5.13.1",
|
|
"react": "^19.3.0",
|
|
"react-cookie": "^8.1.2",
|
|
"react-dom": "^19.3.0",
|
|
"react-ga4": "^3.0.1",
|
|
"react-overlays": "^5.2.1",
|
|
"react-router": "^8.3.1",
|
|
"sanitize.css": "^13.0.0",
|
|
"yet-another-react-lightbox": "^3.32.2"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.5.13",
|
|
"@types/async-lock": "^1.4.2",
|
|
"@types/lokijs": "^1.5.14",
|
|
"@types/node": "^24.13.4",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@vitejs/plugin-react": "^6.1.1",
|
|
"sirv": "^3.0.2",
|
|
"typescript": "~7.0.2",
|
|
"vite": "^8.3.0"
|
|
}
|
|
}
|