Lift the trace-to-shape geometry into @tts/mesh (traceToShape/ traceToUvBounds), parameterized by scale so the web token viewer and @tts/tabletop share one implementation. Move the CORS proxy HTTP helpers (assetUrl, resolveAssetUrl, traceImage) into a new @tts/http package, and make @tts/tabletop's ErrorBoundary the single source used by the web app. This removes the duplicated ErrorBoundary, assetUrl, tabletopHttp, and trace-to-shape code from apps/web and packages/tabletop.
37 lines
888 B
JSON
37 lines
888 B
JSON
{
|
|
"name": "@tts/tabletop",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.json",
|
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
"test": "vitest run",
|
|
"lint": "echo \"no lint configured\""
|
|
},
|
|
"dependencies": {
|
|
"@react-three/drei": "^10.7.8",
|
|
"@react-three/fiber": "^9.7.0",
|
|
"@react-three/postprocessing": "^3.0.4",
|
|
"@tts/bgm": "workspace:*",
|
|
"@tts/http": "workspace:*",
|
|
"@tts/mesh": "workspace:*",
|
|
"react": "^19.2.8",
|
|
"three": "^0.185.1",
|
|
"zustand": "^5.0.14"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^19.2.18",
|
|
"@types/three": "^0.185.4",
|
|
"typescript": "^5.7.2",
|
|
"vitest": "^4.1.10"
|
|
}
|
|
} |