mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 06:05:24 +00:00
chore: clean up npm scripts, make npm run dev the full runner and drop concurrently
This commit is contained in:
1 parent
ec80a8ef8d
commit
3ee98664f0
7 files changed
+17
-147
No files matched your search
+2
-2
@@ -655,7 +655,7 @@ async function handleBackendRequest(msg) {
|
||||
if (!msg || msg.type !== "backend-request") return;
|
||||
const { id, channel, payload } = msg;
|
||||
const handler = BACKEND_REQUEST_HANDLERS[channel];
|
||||
// Under dev:all the runner owns the backend and relays these messages.
|
||||
// Under npm run dev:electron the runner owns the backend and relays these messages.
|
||||
const target =
|
||||
backendProcess && !backendProcess.killed
|
||||
? backendProcess
|
||||
@@ -3775,7 +3775,7 @@ app.whenReady().then(async () => {
|
||||
logToFile("startBackendServer result:", result);
|
||||
} else {
|
||||
logToFile(
|
||||
"Skipping embedded backend (isDev=true) - expecting separate dev:backend process",
|
||||
"Skipping embedded backend (isDev=true) - expecting the dev runner's backend",
|
||||
);
|
||||
if (isDevRunner()) {
|
||||
process.on("message", (msg) => void handleBackendRequest(msg));
|
||||
|
||||
Reference in new issue
Block a user