chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
@@ -28,10 +28,7 @@ export async function maybeRepairUiProtocolFreshness(
|
||||
]);
|
||||
|
||||
if (schemaStats && !uiStats) {
|
||||
note(
|
||||
["- Control UI assets are missing.", "- Run: pnpm ui:build"].join("\n"),
|
||||
"UI",
|
||||
);
|
||||
note(["- Control UI assets are missing.", "- Run: pnpm ui:build"].join("\n"), "UI");
|
||||
|
||||
// In slim/docker environments we may not have the UI source tree. Trying
|
||||
// to build would fail (and spam logs), so skip the interactive repair.
|
||||
@@ -50,14 +47,11 @@ export async function maybeRepairUiProtocolFreshness(
|
||||
if (shouldRepair) {
|
||||
note("Building Control UI assets... (this may take a moment)", "UI");
|
||||
const uiScriptPath = path.join(root, "scripts/ui.js");
|
||||
const buildResult = await runCommandWithTimeout(
|
||||
[process.execPath, uiScriptPath, "build"],
|
||||
{
|
||||
cwd: root,
|
||||
timeoutMs: 120_000,
|
||||
env: { ...process.env, FORCE_COLOR: "1" },
|
||||
},
|
||||
);
|
||||
const buildResult = await runCommandWithTimeout([process.execPath, uiScriptPath, "build"], {
|
||||
cwd: root,
|
||||
timeoutMs: 120_000,
|
||||
env: { ...process.env, FORCE_COLOR: "1" },
|
||||
});
|
||||
if (buildResult.code === 0) {
|
||||
note("UI build complete.", "UI");
|
||||
} else {
|
||||
@@ -102,8 +96,7 @@ export async function maybeRepairUiProtocolFreshness(
|
||||
);
|
||||
|
||||
const shouldRepair = await prompter.confirmAggressive({
|
||||
message:
|
||||
"Rebuild UI now? (Detected protocol mismatch requiring update)",
|
||||
message: "Rebuild UI now? (Detected protocol mismatch requiring update)",
|
||||
initialValue: true,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user