- Add Vite plugin implementing y-protocols sync server for dev mode - Fix useYjs hook: move provider creation into useEffect to survive React StrictMode remounts - Fix WebSocket URL: use /sync as base (y-websocket appends room name) - Verified in browser: Connected status, Host badge, awareness working Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"name": "@trails-cool/planner",
|
|
"private": true,
|
|
"version": "0.0.1",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "react-router dev",
|
|
"build": "react-router build",
|
|
"start": "node server.ts",
|
|
"typecheck": "react-router typegen && tsc",
|
|
"lint": "eslint ."
|
|
},
|
|
"dependencies": {
|
|
"@react-router/node": "catalog:",
|
|
"@react-router/serve": "catalog:",
|
|
"@trails-cool/db": "workspace:*",
|
|
"@trails-cool/gpx": "workspace:*",
|
|
"@trails-cool/i18n": "workspace:*",
|
|
"@trails-cool/map": "workspace:*",
|
|
"@trails-cool/types": "workspace:*",
|
|
"@trails-cool/ui": "workspace:*",
|
|
"drizzle-orm": "catalog:",
|
|
"isbot": "^5.1.0",
|
|
"lib0": "^0.2.117",
|
|
"react": "catalog:",
|
|
"react-dom": "catalog:",
|
|
"react-router": "catalog:",
|
|
"ws": "^8.20.0",
|
|
"y-protocols": "^1.0.7",
|
|
"y-websocket": "^3.0.0",
|
|
"yjs": "^13.6.30"
|
|
},
|
|
"devDependencies": {
|
|
"@react-router/dev": "catalog:",
|
|
"@tailwindcss/vite": "catalog:",
|
|
"@types/react": "catalog:",
|
|
"@types/react-dom": "catalog:",
|
|
"@types/ws": "^8.18.1",
|
|
"tailwindcss": "catalog:",
|
|
"typescript": "catalog:",
|
|
"vite": "catalog:"
|
|
}
|
|
}
|