@fudrouter/fsrouter 0.6.38 → 0.6.40
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/bin/cli.cjs +12 -1
- package/package.json +5 -13
package/bin/cli.cjs
CHANGED
|
@@ -508,7 +508,18 @@ function startServer(latestVersion) {
|
|
|
508
508
|
function spawnServer() {
|
|
509
509
|
serverStartTime = Date.now();
|
|
510
510
|
crashLog = [];
|
|
511
|
-
|
|
511
|
+
// Resolve tsx loader path (works cross-platform; bare --import tsx fails on Windows)
|
|
512
|
+
let tsxImport;
|
|
513
|
+
try {
|
|
514
|
+
tsxImport = require.resolve("tsx/esm");
|
|
515
|
+
} catch (_) {
|
|
516
|
+
try {
|
|
517
|
+
tsxImport = require.resolve("tsx");
|
|
518
|
+
} catch (_) {
|
|
519
|
+
tsxImport = "tsx";
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
const child = spawn(RUNTIME, ["--import", tsxImport, "--max-old-space-size=6144", serverPath], {
|
|
512
523
|
cwd: standaloneDir,
|
|
513
524
|
stdio: showLog ? "inherit" : ["ignore", "ignore", "pipe"],
|
|
514
525
|
detached: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fudrouter/fsrouter",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.40",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "9Router v2 \u2014 Express Backend (API, SSE, DB, Auth, MITM)",
|
|
@@ -30,22 +30,14 @@
|
|
|
30
30
|
"socks-proxy-agent": "^8.0.5",
|
|
31
31
|
"sql.js": "^1.14.1",
|
|
32
32
|
"undici": "^7.10.0",
|
|
33
|
-
"uuid": "^11.1.0"
|
|
33
|
+
"uuid": "^11.1.0",
|
|
34
|
+
"tsx": "^4.19.4",
|
|
35
|
+
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
36
|
+
"@types/node": "^24.0.0"
|
|
34
37
|
},
|
|
35
38
|
"imports": {
|
|
36
39
|
"@/*": "./dist/*",
|
|
37
40
|
"open-sse": "./open-sse/index.js",
|
|
38
41
|
"open-sse/*": "./open-sse/*"
|
|
39
|
-
},
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
42
|
-
"@types/bcryptjs": "^2.4.6",
|
|
43
|
-
"@types/better-sqlite3": "^7.6.13",
|
|
44
|
-
"@types/cookie-parser": "^1.4.8",
|
|
45
|
-
"@types/cors": "^2.8.17",
|
|
46
|
-
"@types/express": "^5.0.3",
|
|
47
|
-
"@types/node": "^24.0.0",
|
|
48
|
-
"tsx": "^4.19.4",
|
|
49
|
-
"typescript": "^5.8.3"
|
|
50
42
|
}
|
|
51
43
|
}
|