mirror of
https://github.com/xtr-dev/rondevu-client.git
synced 2025-12-18 14:43:24 +00:00
Restructure flat src/ directory (17 files) into organized folders:
Structure:
- src/core/ - Main API (rondevu.ts, offer-pool.ts, types.ts, index.ts)
- src/connections/ - WebRTC connections (base.ts, offerer.ts, answerer.ts, config.ts, events.ts)
- src/api/ - HTTP layer (client.ts, batcher.ts)
- src/crypto/ - Crypto adapters (adapter.ts, node.ts, web.ts)
- src/utils/ - Utilities (async-lock.ts, exponential-backoff.ts, message-buffer.ts)
Changes:
- Move all 17 files to appropriate feature folders
- Update all import paths to reflect new structure
- Update package.json main/types to point to dist/core/index.js
- Preserve git history with git mv
Benefits:
- Clear separation of concerns
- Easier navigation and maintenance
- Better scalability for future features
- Logical grouping of related files
🤖 Generated with Claude Code
48 lines
1.2 KiB
JSON
48 lines
1.2 KiB
JSON
{
|
|
"name": "@xtr-dev/rondevu-client",
|
|
"version": "0.20.0",
|
|
"description": "TypeScript client for Rondevu with durable WebRTC connections, automatic reconnection, and message queuing",
|
|
"type": "module",
|
|
"main": "dist/core/index.js",
|
|
"types": "dist/core/index.d.ts",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"typecheck": "tsc --noEmit",
|
|
"dev": "vite",
|
|
"lint": "eslint src demo --ext .ts,.tsx,.js",
|
|
"lint:fix": "eslint src demo --ext .ts,.tsx,.js --fix",
|
|
"format": "prettier --write \"src/**/*.{ts,tsx,js}\" \"demo/**/*.{ts,tsx,js,html}\"",
|
|
"prepublishOnly": "npm run build"
|
|
},
|
|
"keywords": [
|
|
"webrtc",
|
|
"p2p",
|
|
"signaling",
|
|
"peer-discovery",
|
|
"rondevu"
|
|
],
|
|
"author": "",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.39.1",
|
|
"@typescript-eslint/eslint-plugin": "^8.48.1",
|
|
"@typescript-eslint/parser": "^8.48.1",
|
|
"eslint": "^9.39.1",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-prettier": "^5.5.4",
|
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
"globals": "^16.5.0",
|
|
"prettier": "^3.7.4",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^7.2.6"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"dependencies": {
|
|
"@noble/ed25519": "^3.0.0",
|
|
"eventemitter3": "^5.0.1"
|
|
}
|
|
}
|