Working version Reviewed-on: #21
This commit was merged in pull request #21.
This commit is contained in:
2026-11-01 22:07:51 +00:00
parent 1edf2e6200
commit 636f5b9c77
80 changed files with 4065 additions and 549 deletions
+10
View File
@@ -0,0 +1,10 @@
import { spawn } from 'node:child_process';
const env = { ...process.env, WIKIDECK_NETWORK: 'testnet', WIKIDECK_GENESIS_TIME: '1792411200' };
const child = spawn(process.execPath, ['--import', 'tsx', 'server/testnet/miner.ts', ...process.argv.slice(2)], {
env, stdio: 'inherit', shell: false,
});
child.once('error', () => { process.exitCode = 1; });
child.once('exit', (code, signal) => {
process.exitCode = code ?? (signal ? 1 : 0);
});