Files
spacedrive/packages/ts-client/package.json
Jamie Pine caf5a242fd Implement TypeScript integration tests with Rust bridge
- Added a new test suite in `core/tests/typescript_bridge_test.rs` to facilitate end-to-end testing between Rust and TypeScript.
- Introduced `IndexingHarnessBuilder` enhancements to support a daemon RPC server for TypeScript tests.
- Created TypeScript test files for `useNormalizedQuery` to validate file move and folder rename operations.
- Configured Bun test environment with `bunfig.toml` and setup scripts for improved testing efficiency.
- Updated `TcpSocketTransport` to handle TCP connections for the TypeScript client, ensuring robust communication with the Rust backend.
- Enhanced logging and error handling for better visibility during test execution.
2025-12-25 06:45:17 -08:00

78 lines
1.7 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"
},
"./hooks": {
"types": "./src/hooks/index.ts",
"default": "./src/hooks/index.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",
"@tanstack/react-query": "^5.62.0",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^16.0.0",
"@types/jest": "^29.0.0",
"@types/node": "^20.0.0",
"@types/react": "^19.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",
"react": "^19.0.0",
"@tanstack/react-query": "^5.62.0",
"ts-deepmerge": "^7.0.1",
"tiny-invariant": "^1.3.3",
"valibot": "^1.0.0",
"type-fest": "^4.30.0"
},
"files": [
"dist/**/*",
"src/**/*"
]
}