@fudrouter/fsrouter 0.6.42 → 0.6.43

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/cli.cjs +2 -2
  2. package/package.json +1 -1
package/bin/cli.cjs CHANGED
@@ -521,8 +521,8 @@ function startServer(latestVersion) {
521
521
  tsxImport = "tsx";
522
522
  }
523
523
  }
524
- const entrypoint = process.platform === "win32" ? pathToFileURL(serverPath).href : serverPath;
525
- const child = spawn(RUNTIME, ["--import", tsxImport, "--max-old-space-size=6144", entrypoint], {
524
+ // tsx resolves the entrypoint relative to cwd; only the loader needs a file URL.
525
+ const child = spawn(RUNTIME, ["--import", tsxImport, "--max-old-space-size=6144", serverPath], {
526
526
  cwd: standaloneDir,
527
527
  stdio: showLog ? "inherit" : ["ignore", "ignore", "pipe"],
528
528
  detached: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fudrouter/fsrouter",
3
- "version": "0.6.42",
3
+ "version": "0.6.43",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "9Router v2 \u2014 Express Backend (API, SSE, DB, Auth, MITM)",