prettier fix

This commit is contained in:
2026-03-03 00:00:23 +01:00
parent 73cdde3f5c
commit 95791f8aee
2 changed files with 15 additions and 3 deletions
+12 -2
View File
@@ -52,7 +52,12 @@ export function createNodecgProcessManager({
let lastStderrLine: string | null = null;
const startNodecgProcess = async (): Promise<ChildProcess> => {
validateNodecgInstall(nodecgRootPath, resolvedDeps.platform, resolvedDeps.pathExists, resolvedDeps.hasReadWriteAccess);
validateNodecgInstall(
nodecgRootPath,
resolvedDeps.platform,
resolvedDeps.pathExists,
resolvedDeps.hasReadWriteAccess,
);
const portAsNumber = Number.parseInt(appConfig.nodecgPort, 10);
const isPortAvailable = await resolvedDeps.probePortAvailable(portAsNumber);
@@ -212,7 +217,12 @@ function validateNodecgInstall(
): void {
const packageJsonPath = path.join(nodecgRootPath, "package.json");
const nodecgDependencyPath = path.join(nodecgRootPath, "node_modules", "nodecg", "package.json");
const nodecgCliPath = path.join(nodecgRootPath, "node_modules", ".bin", platform === "win32" ? "nodecg.cmd" : "nodecg");
const nodecgCliPath = path.join(
nodecgRootPath,
"node_modules",
".bin",
platform === "win32" ? "nodecg.cmd" : "nodecg",
);
const bundleAssetDirs = ["dashboard", "graphics", "extension", "extensions"].map((dir) =>
path.join(nodecgRootPath, dir),
);