mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-02-20 07:37:26 -05:00
Add a mobile-dev Cargo profile for faster mobile development builds (parallel codegen, no LTO, opt-level 2) — available opt-in via `cargo build --profile mobile-dev`. Production builds use --release. Fix NDK host_tag to always use darwin-x86_64 on macOS since Google ships universal binaries under that path. Make aws-lc-sys cache cleaning opt-in via CLEAN_AWS_LC=1 to enable incremental iOS builds. Scope Metro file watcher to src/ and packages/ instead of the entire monorepo (avoids watching 4.5GB+ Rust target/ dirs) and fix React resolution to use workspace root where bun hoists packages. Apply tembo review feedback from #3011: fix SVG type declarations to avoid DOM dependency, add sound asset type flexibility, and add public subpath exports to ts-client. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
95 lines
2.2 KiB
JSON
95 lines
2.2 KiB
JSON
{
|
|
"name": "@sd/ts-client",
|
|
"version": "0.1.0",
|
|
"description": "Type-safe TypeScript client for Spacedrive daemon",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./src/index.ts",
|
|
"default": "./src/index.ts"
|
|
},
|
|
"./generated/types": {
|
|
"types": "./src/generated/types.ts",
|
|
"default": "./src/generated/types.ts"
|
|
},
|
|
"./src/generated/types": {
|
|
"types": "./src/generated/types.ts",
|
|
"default": "./src/generated/types.ts"
|
|
},
|
|
"./hooks": {
|
|
"types": "./src/hooks/index.ts",
|
|
"default": "./src/hooks/index.ts"
|
|
},
|
|
"./hooks/useClient": {
|
|
"types": "./src/hooks/useClient.tsx",
|
|
"default": "./src/hooks/useClient.tsx"
|
|
},
|
|
"./hooks/useNormalizedQuery": {
|
|
"types": "./src/hooks/useNormalizedQuery.ts",
|
|
"default": "./src/hooks/useNormalizedQuery.ts"
|
|
},
|
|
"./src/hooks/useClient": {
|
|
"types": "./src/hooks/useClient.tsx",
|
|
"default": "./src/hooks/useClient.tsx"
|
|
},
|
|
"./src/hooks/useNormalizedQuery": {
|
|
"types": "./src/hooks/useNormalizedQuery.ts",
|
|
"default": "./src/hooks/useNormalizedQuery.ts"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "tsc --watch",
|
|
"test": "jest",
|
|
"generate-types": "cargo run --bin generate_typescript_types --manifest-path ../../core/Cargo.toml"
|
|
},
|
|
"keywords": [
|
|
"spacedrive",
|
|
"client",
|
|
"typescript",
|
|
"daemon"
|
|
],
|
|
"author": "Spacedrive",
|
|
"license": "GPL-3.0",
|
|
"peerDependencies": {
|
|
"@tanstack/react-query": "^5.0.0",
|
|
"react": "^18.0.0 || ^19.0.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@tanstack/react-query": {
|
|
"optional": true
|
|
},
|
|
"react": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@happy-dom/global-registrator": "^15.11.0",
|
|
"@testing-library/jest-dom": "^6.0.0",
|
|
"@testing-library/react": "^16.0.0",
|
|
"@types/jest": "^29.0.0",
|
|
"@types/node": "^20.0.0",
|
|
"happy-dom": "^15.11.0",
|
|
"jest": "^29.0.0",
|
|
"jest-environment-jsdom": "^29.0.0",
|
|
"jsdom": "^27.2.0",
|
|
"ts-jest": "^29.0.0",
|
|
"typescript": "^5.0.0"
|
|
},
|
|
"dependencies": {
|
|
"@types/ws": "^8.0.0",
|
|
"@sd/assets": "workspace:*",
|
|
"ws": "^8.0.0",
|
|
"zustand": "^5.0.8",
|
|
"ts-deepmerge": "^7.0.1",
|
|
"tiny-invariant": "^1.3.3",
|
|
"valibot": "^1.0.0",
|
|
"type-fest": "^4.30.0"
|
|
},
|
|
"files": [
|
|
"dist/**/*",
|
|
"src/**/*"
|
|
]
|
|
}
|