2019-11-30 17:04:59 +02:00
|
|
|
/**
|
|
|
|
* This file starts the bot and api processes in tandem.
|
|
|
|
* Used with tsc-watch for restarting on watch.
|
|
|
|
*/
|
|
|
|
|
|
|
|
const childProcess = require("child_process");
|
|
|
|
|
2021-09-11 19:06:51 +03:00
|
|
|
const cmd = process.platform === "win32" ? "npm.cmd" : "npm";
|
2019-11-30 17:04:59 +02:00
|
|
|
|
|
|
|
childProcess.spawn(cmd, ["run", "start-bot-dev"], {
|
|
|
|
stdio: [process.stdin, process.stdout, process.stderr],
|
|
|
|
});
|
|
|
|
|
|
|
|
childProcess.spawn(cmd, ["run", "start-api-dev"], {
|
|
|
|
stdio: [process.stdin, process.stdout, process.stderr],
|
|
|
|
});
|