mn-ws 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/bin/ws.mjs +0 -0
  2. package/package.json +18 -18
package/bin/ws.mjs CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mn-ws",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "HTTP 与 WebSocket 双向桥的客户端半:把本机 nx 服务桥给远端 HTTP 客户端",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,25 +19,11 @@
19
19
  "bin",
20
20
  "assets"
21
21
  ],
22
- "scripts": {
23
- "start": "pnpm build && node bin/ws.mjs serve",
24
- "dev": "node --import tsx scripts/dev.mjs",
25
- "dev:serve": "node --import tsx src/runtime/cli.ts serve --no-open",
26
- "link:local": "node scripts/link-local.mjs",
27
- "unlink:local": "node scripts/link-local.mjs --unlink",
28
- "build": "tsc -b tsconfig.node.json && vite build",
29
- "typecheck": "tsc -b tsconfig.node.json tsconfig.web.json",
30
- "lint": "eslint .",
31
- "test:smoke": "node tests/smoke.mjs",
32
- "test:unit": "node --import tsx --test \"tests/unit/*.test.ts\" \"tests/unit/*.test.mjs\"",
33
- "test:e2e": "node tests/e2e-remote.js",
34
- "test": "pnpm run lint && pnpm run typecheck && pnpm run build && pnpm run test:smoke && pnpm run test:unit"
35
- },
36
22
  "dependencies": {
37
- "mn-ws-server": "workspace:*",
38
23
  "react": "^19.0.0",
39
24
  "react-dom": "^19.0.0",
40
- "ws": "^8.18.0"
25
+ "ws": "^8.18.0",
26
+ "mn-ws-server": "0.2.1"
41
27
  },
42
28
  "devDependencies": {
43
29
  "@types/node": "^22.10.0",
@@ -62,5 +48,19 @@
62
48
  "homepage": "https://github.com/On-DevPlan/mn-ws#readme",
63
49
  "bugs": {
64
50
  "url": "https://github.com/On-DevPlan/mn-ws/issues"
51
+ },
52
+ "scripts": {
53
+ "start": "pnpm build && node bin/ws.mjs serve",
54
+ "dev": "node --import tsx scripts/dev.mjs",
55
+ "dev:serve": "node --import tsx src/runtime/cli.ts serve --no-open",
56
+ "link:local": "node scripts/link-local.mjs",
57
+ "unlink:local": "node scripts/link-local.mjs --unlink",
58
+ "build": "tsc -b tsconfig.node.json && vite build",
59
+ "typecheck": "tsc -b tsconfig.node.json tsconfig.web.json",
60
+ "lint": "eslint .",
61
+ "test:smoke": "node tests/smoke.mjs",
62
+ "test:unit": "node --import tsx --test \"tests/unit/*.test.ts\" \"tests/unit/*.test.mjs\"",
63
+ "test:e2e": "node tests/e2e-remote.js",
64
+ "test": "pnpm run lint && pnpm run typecheck && pnpm run build && pnpm run test:smoke && pnpm run test:unit"
65
65
  }
66
- }
66
+ }