sloth-d2c-mcp 1.0.4-beta98 → 1.0.4-beta99
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/dist/build/index.js
CHANGED
|
@@ -30,8 +30,10 @@ const spawnServerProcess = async () => {
|
|
|
30
30
|
const { fileURLToPath } = await import('node:url');
|
|
31
31
|
// 获取当前脚本路径(兼容 Node.js 18)
|
|
32
32
|
const scriptPath = fileURLToPath(import.meta.url);
|
|
33
|
+
// 指向scriptPath目录下的log
|
|
34
|
+
const logPath = path.resolve(path.dirname(scriptPath), 'sloth-server.log');
|
|
33
35
|
// 后台启动子进程
|
|
34
|
-
const child = spawn(process.execPath, [scriptPath, '--server'], {
|
|
36
|
+
const child = spawn(process.execPath, [scriptPath, '--server', '--log=' + logPath], {
|
|
35
37
|
detached: true,
|
|
36
38
|
stdio: 'ignore',
|
|
37
39
|
env: { ...process.env, NODE_ENV: 'cli' }
|