- main.tsx: use HashRouter when loaded over file:// (packaged desktop has no server for History API path routing); keep BrowserRouter on the http web build. - add build:desktop script (vite build --base=./ --outDir dist-desktop) so assets resolve under file://; gitignore dist-desktop. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
35 lines
887 B
JSON
35 lines
887 B
JSON
{
|
|
"name": "fabric-frontend",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "eslint .",
|
|
"preview": "vite preview",
|
|
"build:desktop": "tsc -b && vite build --base=./ --outDir dist-desktop"
|
|
},
|
|
"dependencies": {
|
|
"axios": "^1.16.0",
|
|
"react": "^19.2.6",
|
|
"react-dom": "^19.2.6",
|
|
"react-router-dom": "^7.15.0",
|
|
"socket.io-client": "^4.8.3"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@types/node": "^24.12.3",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^6.0.1",
|
|
"eslint": "^10.3.0",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
"globals": "^17.6.0",
|
|
"typescript": "~6.0.2",
|
|
"typescript-eslint": "^8.59.2",
|
|
"vite": "^8.0.12"
|
|
}
|
|
}
|