update
This commit is contained in:
@@ -12,21 +12,21 @@
|
||||
"keywords": [],
|
||||
"author": "abearxiong <xiongxiao@xiongxiao.me> (https://www.xiongxiao.me)",
|
||||
"license": "MIT",
|
||||
"packageManager": "pnpm@10.16.1",
|
||||
"packageManager": "pnpm@10.28.1",
|
||||
"type": "module",
|
||||
"devDependencies": {
|
||||
"@kevisual/local-proxy": "^0.0.6",
|
||||
"@kevisual/types": "^0.0.10",
|
||||
"@kevisual/use-config": "^1.0.19",
|
||||
"@types/bun": "^1.3.0"
|
||||
"@kevisual/local-proxy": "^0.0.8",
|
||||
"@kevisual/types": "^0.0.12",
|
||||
"@kevisual/use-config": "^1.0.28",
|
||||
"@types/bun": "^1.3.6"
|
||||
},
|
||||
"dependencies": {
|
||||
"@kevisual/noco": "^0.0.1",
|
||||
"@kevisual/query": "^0.0.29",
|
||||
"@kevisual/router": "^0.0.29",
|
||||
"@kevisual/video-tools": "^0.0.10",
|
||||
"@kevisual/noco": "^0.0.10",
|
||||
"@kevisual/query": "^0.0.38",
|
||||
"@kevisual/router": "^0.0.60",
|
||||
"@kevisual/video-tools": "^0.0.13",
|
||||
"fast-glob": "^3.3.3",
|
||||
"pocketbase": "^0.26.2",
|
||||
"unstorage": "^1.17.1"
|
||||
"pocketbase": "^0.26.6",
|
||||
"unstorage": "^1.17.4"
|
||||
}
|
||||
}
|
||||
21
server/test/run-str.ts
Normal file
21
server/test/run-str.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { spawnSync } from 'node:child_process';
|
||||
|
||||
const code = `import { App } from '@kevisual/router';
|
||||
const app = new App();
|
||||
console.log('App initialized:', app.appId);
|
||||
`
|
||||
// const child = Bun.spawn({
|
||||
// cmd: ["bun", "--eval", "console.log('from child process')"],
|
||||
// stdio: ["pipe", "pipe", "inherit"]
|
||||
// });
|
||||
|
||||
const child = Bun.spawn({
|
||||
cmd: ["bun", "--eval", code],
|
||||
env: {},
|
||||
stdio: ["pipe", "pipe", "inherit"]
|
||||
});
|
||||
|
||||
const output = await new Response(child.stdout).text();
|
||||
console.log('Child process output:', output);
|
||||
|
||||
console.log('Child process PID:', child.pid);
|
||||
Reference in New Issue
Block a user