Makelore 2.0 initial clean snapshot

This commit is contained in:
inman
2026-07-29 17:22:35 +08:00
commit b8ca3f8eea
694 changed files with 139782 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import { spawn } from 'node:child_process';
import { resolve } from 'node:path';
const viteEntry = resolve(process.cwd(), 'node_modules/vite/bin/vite.js');
const child = spawn(process.execPath, [viteEntry, ...process.argv.slice(2)], {
stdio: 'inherit',
env: {
...process.env,
NIANCODE_IMAGE_WORKSPACE_MODE: 'local',
},
});
for (const signal of ['SIGINT', 'SIGTERM']) {
process.on(signal, () => {
child.kill(signal);
});
}
child.on('exit', (code, signal) => {
if (signal) {
process.kill(process.pid, signal);
return;
}
process.exitCode = code ?? 1;
});