Files
wikideck/scripts/miner-testnet.mjs
2026-10-29 11:45:51 -04:00

11 lines
454 B
JavaScript
Executable File

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);
});