Apply consistent project formatting

This commit is contained in:
young
2026-08-28 09:54:42 +10:00
parent c13703b9df
commit fb44703514
114 changed files with 3803 additions and 3362 deletions
+9 -2
View File
@@ -201,7 +201,12 @@ function parseExportQuality(rawValue) {
return null;
}
if (rawValue === "medium" || rawValue === "good" || rawValue === "high" || rawValue === "source") {
if (
rawValue === "medium" ||
rawValue === "good" ||
rawValue === "high" ||
rawValue === "source"
) {
return rawValue;
}
@@ -928,7 +933,9 @@ async function main() {
printRequestedConfigTable(benchmarkRequests);
if (providedInputPath) {
console.log(`[benchmark-export-queues] Using provided input video: ${providedInputPath}`);
console.log(
`[benchmark-export-queues] Using provided input video: ${providedInputPath}`,
);
await fs.copyFile(providedInputPath, inputPath);
} else {
console.log(`[benchmark-export-queues] Generating fixture video: ${inputPath}`);
+8 -5
View File
@@ -128,11 +128,14 @@ try {
prefix: "build-windows-capture",
clearCache: clearCmakeCache,
configure: (generator, toolset) =>
execSync(`${cmake} .. -G "${generator}" -A ${generatorArch}${toolset ? ` -T ${toolset}` : ""}`, {
cwd: buildDir,
stdio: "inherit",
timeout: 120000,
}),
execSync(
`${cmake} .. -G "${generator}" -A ${generatorArch}${toolset ? ` -T ${toolset}` : ""}`,
{
cwd: buildDir,
stdio: "inherit",
timeout: 120000,
},
),
});
} catch (error) {
console.error("[build-windows-capture] CMake configure failed:", error.message);
+11 -6
View File
@@ -97,7 +97,9 @@ if (!cmake) {
binaryName: "recordly-gpu-export.exe",
});
if (!verification.ok) {
console.error(formatNativeHelperManifestWarning("build-windows-gpu-export", verification));
console.error(
formatNativeHelperManifestWarning("build-windows-gpu-export", verification),
);
process.exit(1);
}
console.log(`[build-windows-gpu-export] Using bundled helper: ${bundledExePath}`);
@@ -123,11 +125,14 @@ try {
prefix: "build-windows-gpu-export",
clearCache: clearCmakeCache,
configure: (generator, toolset) =>
execSync(`${cmake} .. -G "${generator}" -A ${generatorArch}${toolset ? ` -T ${toolset}` : ""}`, {
cwd: buildDir,
stdio: "inherit",
timeout: 120000,
}),
execSync(
`${cmake} .. -G "${generator}" -A ${generatorArch}${toolset ? ` -T ${toolset}` : ""}`,
{
cwd: buildDir,
stdio: "inherit",
timeout: 120000,
},
),
});
} catch (error) {
console.error("[build-windows-gpu-export] CMake configure failed:", error.message);
+6 -3
View File
@@ -72,9 +72,12 @@ function loadNotes({ notes, notesFile }) {
}
function resolveGhBinary() {
const candidates = [process.env.GH_BIN, "gh", "/opt/homebrew/bin/gh", "/usr/local/bin/gh"].filter(
Boolean,
);
const candidates = [
process.env.GH_BIN,
"gh",
"/opt/homebrew/bin/gh",
"/usr/local/bin/gh",
].filter(Boolean);
for (const candidate of candidates) {
try {
+3 -11
View File
@@ -76,9 +76,7 @@ function convertNamedExports(namedSpec, indent = "") {
}
function convertExportLine(line) {
const singleLineMatch = line.match(
/^([ \t]*)export\s*\{\s*([^}]*)\s*\}\s*;?[ \t]*$/,
);
const singleLineMatch = line.match(/^([ \t]*)export\s*\{\s*([^}]*)\s*\}\s*;?[ \t]*$/);
if (singleLineMatch) {
const [, indent, namedSpec] = singleLineMatch;
return convertNamedExports(namedSpec, indent);
@@ -235,10 +233,7 @@ function replaceImportMetaUrlInCode(line, state) {
continue;
}
if (
line.startsWith(token, index) &&
hasTokenBoundary(line, index, index + token.length)
) {
if (line.startsWith(token, index) && hasTokenBoundary(line, index, index + token.length)) {
normalizedLine += IMPORT_META_URL_CJS_REPLACEMENT;
changed = true;
index += token.length - 1;
@@ -322,10 +317,7 @@ function containsImportMetaInCode(line, state) {
continue;
}
if (
line.startsWith(token, index) &&
hasTokenBoundary(line, index, index + token.length)
) {
if (line.startsWith(token, index) && hasTokenBoundary(line, index, index + token.length)) {
return true;
}
}