arisa 2.3.24 → 2.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/arisa.js +9 -7
- package/package.json +1 -1
package/bin/arisa.js
CHANGED
|
@@ -533,16 +533,18 @@ switch (command) {
|
|
|
533
533
|
if (isDefaultInvocation) {
|
|
534
534
|
printForegroundNotice();
|
|
535
535
|
}
|
|
536
|
-
|
|
537
|
-
|
|
536
|
+
// Run daemon in-process — avoids an extra bun child (~150MB saved)
|
|
537
|
+
await import(daemonEntry);
|
|
538
|
+
break;
|
|
539
|
+
}
|
|
540
|
+
case "core": {
|
|
541
|
+
// Run core in-process
|
|
542
|
+
await import(coreEntry);
|
|
543
|
+
break;
|
|
538
544
|
}
|
|
539
|
-
case "core":
|
|
540
|
-
{
|
|
541
|
-
const child = runWithBun([coreEntry, ...rest]);
|
|
542
|
-
process.exit(child.status === null ? 1 : child.status);
|
|
543
|
-
}
|
|
544
545
|
case "dev":
|
|
545
546
|
{
|
|
547
|
+
// dev needs --watch which is a bun CLI flag, so child process required
|
|
546
548
|
const child = runWithBun(["--watch", coreEntry, ...rest]);
|
|
547
549
|
process.exit(child.status === null ? 1 : child.status);
|
|
548
550
|
}
|