@source-repo/rpc-cli 3.0.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,65 +1,79 @@
1
1
  {
2
- "name": "@source-repo/rpc-cli",
3
- "version": "3.0.0",
4
- "description": "Source RPC tooling: extract a contract from TypeScript, check it against a build or a live device, and browse, tap, fake, record and bench a live network",
5
- "type": "module",
6
- "license": "MIT",
7
- "engines": {
8
- "node": ">=18.17"
9
- },
10
- "bin": {
11
- "source-rpc": "./dist/index.js"
12
- },
13
- "main": "./dist/index.js",
14
- "types": "./dist/index.d.ts",
15
- "files": [
16
- "dist",
17
- "!dist/**/*.test.*",
18
- "!dist/fixture"
19
- ],
20
- "scripts": {
21
- "build": "vite build --config web/vite.config.ts && tsc -p tsconfig.json",
22
- "clean": "rimraf dist",
23
- "postbuild": "node -e \"require('fs').chmodSync('dist/index.js', 0o755)\"",
24
- "typecheck": "tsc --noEmit -p tsconfig.json",
25
- "test": "npm run clean && npm run build && ava",
26
- "prepack": "npm run clean && npm run build",
27
- "contract": "npm run contract:console && npm run contract:bus && npm run contract:chat && npm run contract:rpc",
28
- "contract:console": "node dist/index.js extract --project tsconfig.contract.json --out src/console.types.json",
29
- "contract:bus": "node dist/index.js extract --project tsconfig.bus.json --out src/bus.types.json",
30
- "contract:chat": "node dist/index.js extract --project web/tsconfig.contract.json --out web/src/chat.types.json",
31
- "check:contract": "npm run check:contract:console && npm run check:contract:bus && npm run check:contract:chat && npm run check:contract:rpc",
32
- "check:contract:console": "node dist/index.js check --project tsconfig.contract.json --against src/console.types.json",
33
- "check:contract:bus": "node dist/index.js check --project tsconfig.bus.json --against src/bus.types.json",
34
- "check:contract:chat": "node dist/index.js check --project web/tsconfig.contract.json --against web/src/chat.types.json",
35
- "build:web": "vite build --config web/vite.config.ts",
36
- "dev:web": "vite --config web/vite.config.ts",
37
- "contract:rpc": "node dist/index.js extract --project ../rpc/tsconfig.contract.json --out ../rpc/src/RPC/Introspection.types.json",
38
- "check:contract:rpc": "node dist/index.js check --project ../rpc/tsconfig.contract.json --against ../rpc/src/RPC/Introspection.types.json"
39
- },
40
- "dependencies": {
41
- "@source-repo/rpc": "^3.0.0",
42
- "ts-morph": "^28.0.0"
43
- },
44
- "devDependencies": {
45
- "@types/node": "^26.1.2",
46
- "@types/react": "^19.0.0",
47
- "@types/react-dom": "^19.0.0",
48
- "@vitejs/plugin-react": "^5.2.0",
49
- "ava": "^8.0.1",
50
- "react": "^19.0.0",
51
- "react-dom": "^19.0.0",
52
- "rimraf": "^6.0.1",
53
- "typescript": "^7.0.2",
54
- "vite": "^7.3.6"
55
- },
56
- "repository": {
57
- "type": "git",
58
- "url": "git+https://github.com/source-repo/rpc.git",
59
- "directory": "packages/cli"
60
- },
61
- "homepage": "https://github.com/source-repo/rpc/tree/main/packages/cli#readme",
62
- "bugs": {
63
- "url": "https://github.com/source-repo/rpc/issues"
64
- }
2
+ "name": "@source-repo/rpc-cli",
3
+ "version": "3.2.0",
4
+ "description": "Source RPC tooling: extract a contract from TypeScript, check it against a build or a live device, and browse, tap, fake, record and bench a live network",
5
+ "keywords": [
6
+ "rpc",
7
+ "mqtt",
8
+ "websocket",
9
+ "socket.io",
10
+ "typescript",
11
+ "cli",
12
+ "mcp",
13
+ "contract-testing",
14
+ "iot",
15
+ "industrial"
16
+ ],
17
+ "type": "module",
18
+ "license": "MIT",
19
+ "engines": {
20
+ "node": ">=18.17"
21
+ },
22
+ "bin": {
23
+ "source-rpc": "./dist/index.js"
24
+ },
25
+ "main": "./dist/index.js",
26
+ "types": "./dist/index.d.ts",
27
+ "files": [
28
+ "dist",
29
+ "!dist/**/*.test.*",
30
+ "!dist/fixture"
31
+ ],
32
+ "scripts": {
33
+ "build": "vite build --config web/vite.config.ts && tsc -p tsconfig.json",
34
+ "clean": "rimraf dist",
35
+ "postbuild": "node -e \"require('fs').chmodSync('dist/index.js', 0o755)\"",
36
+ "typecheck": "tsc --noEmit -p tsconfig.json",
37
+ "test": "npm run clean && npm run build && ava",
38
+ "prepack": "npm run clean && npm run build",
39
+ "contract": "npm run contract:console && npm run contract:bus && npm run contract:chat && npm run contract:scripting && npm run contract:rpc",
40
+ "contract:console": "node dist/index.js extract --project tsconfig.contract.json --out src/console.types.json",
41
+ "contract:bus": "node dist/index.js extract --project tsconfig.bus.json --out src/bus.types.json",
42
+ "contract:chat": "node dist/index.js extract --project web/tsconfig.contract.json --out web/src/chat.types.json",
43
+ "contract:scripting": "node dist/index.js extract --project tsconfig.scripting.json --out src/scripting.types.json",
44
+ "check:contract": "npm run check:contract:console && npm run check:contract:bus && npm run check:contract:chat && npm run check:contract:scripting && npm run check:contract:rpc",
45
+ "check:contract:console": "node dist/index.js check --project tsconfig.contract.json --against src/console.types.json",
46
+ "check:contract:bus": "node dist/index.js check --project tsconfig.bus.json --against src/bus.types.json",
47
+ "check:contract:chat": "node dist/index.js check --project web/tsconfig.contract.json --against web/src/chat.types.json",
48
+ "check:contract:scripting": "node dist/index.js check --project tsconfig.scripting.json --against src/scripting.types.json",
49
+ "build:web": "vite build --config web/vite.config.ts",
50
+ "dev:web": "vite --config web/vite.config.ts",
51
+ "contract:rpc": "node dist/index.js extract --project ../rpc/tsconfig.contract.json --out ../rpc/src/RPC/Introspection.types.json",
52
+ "check:contract:rpc": "node dist/index.js check --project ../rpc/tsconfig.contract.json --against ../rpc/src/RPC/Introspection.types.json"
53
+ },
54
+ "dependencies": {
55
+ "@source-repo/rpc": "^3.2.0",
56
+ "ts-morph": "^28.0.0"
57
+ },
58
+ "devDependencies": {
59
+ "@types/node": "^26.1.2",
60
+ "@types/react": "^19.0.0",
61
+ "@types/react-dom": "^19.0.0",
62
+ "@vitejs/plugin-react": "^5.2.0",
63
+ "ava": "^8.0.1",
64
+ "react": "^19.0.0",
65
+ "react-dom": "^19.0.0",
66
+ "rimraf": "^6.0.1",
67
+ "typescript": "^7.0.2",
68
+ "vite": "^7.3.6"
69
+ },
70
+ "repository": {
71
+ "type": "git",
72
+ "url": "git+https://github.com/source-repo/rpc.git",
73
+ "directory": "packages/cli"
74
+ },
75
+ "homepage": "https://github.com/source-repo/rpc/tree/main/packages/cli#readme",
76
+ "bugs": {
77
+ "url": "https://github.com/source-repo/rpc/issues"
78
+ }
65
79
  }