style: fix prettier formatting

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
frostebite
2026-03-05 14:13:02 +00:00
parent 7615bbd9dd
commit 1e2bb889bf
4 changed files with 22 additions and 17 deletions
Generated Vendored
+5 -5
View File
@@ -10144,10 +10144,7 @@ class OutputTypeRegistry {
* Get all registered types (built-in + custom). * Get all registered types (built-in + custom).
*/ */
static getAllTypes() { static getAllTypes() {
return [ return [...Object.values(OutputTypeRegistry.builtInTypes), ...Object.values(OutputTypeRegistry.customTypes)];
...Object.values(OutputTypeRegistry.builtInTypes),
...Object.values(OutputTypeRegistry.customTypes),
];
} }
/** /**
* Register a custom output type. * Register a custom output type.
@@ -10168,7 +10165,10 @@ class OutputTypeRegistry {
if (!outputTypesInput) { if (!outputTypesInput) {
return []; return [];
} }
const names = outputTypesInput.split(',').map((s) => s.trim()).filter(Boolean); const names = outputTypesInput
.split(',')
.map((s) => s.trim())
.filter(Boolean);
const types = []; const types = [];
for (const name of names) { for (const name of names) {
const typeDef = OutputTypeRegistry.getType(name); const typeDef = OutputTypeRegistry.getType(name);
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
@@ -39,10 +39,15 @@ export class OutputService {
return manifest; return manifest;
} }
OrchestratorLogger.log(`[Output] Collecting ${types.length} output type(s): ${types.map((t) => t.name).join(', ')}`); OrchestratorLogger.log(
`[Output] Collecting ${types.length} output type(s): ${types.map((t) => t.name).join(', ')}`,
);
for (const typeDef of types) { for (const typeDef of types) {
const outputPath = path.join(projectPath, typeDef.defaultPath.replace('{platform}', process.env.BUILD_TARGET || 'Unknown')); const outputPath = path.join(
projectPath,
typeDef.defaultPath.replace('{platform}', process.env.BUILD_TARGET || 'Unknown'),
);
if (!fs.existsSync(outputPath)) { if (!fs.existsSync(outputPath)) {
OrchestratorLogger.log(`[Output] No output found for '${typeDef.name}' at ${outputPath}`); OrchestratorLogger.log(`[Output] No output found for '${typeDef.name}' at ${outputPath}`);
@@ -68,7 +73,9 @@ export class OutputService {
} }
manifest.outputs.push(entry); manifest.outputs.push(entry);
OrchestratorLogger.log(`[Output] Collected '${typeDef.name}': ${entry.files?.length || 1} file(s), ${entry.size || 0} bytes`); OrchestratorLogger.log(
`[Output] Collected '${typeDef.name}': ${entry.files?.length || 1} file(s), ${entry.size || 0} bytes`,
);
} }
// Write manifest to disk // Write manifest to disk
@@ -83,10 +83,7 @@ export class OutputTypeRegistry {
* Get all registered types (built-in + custom). * Get all registered types (built-in + custom).
*/ */
static getAllTypes(): OutputTypeDefinition[] { static getAllTypes(): OutputTypeDefinition[] {
return [ return [...Object.values(OutputTypeRegistry.builtInTypes), ...Object.values(OutputTypeRegistry.customTypes)];
...Object.values(OutputTypeRegistry.builtInTypes),
...Object.values(OutputTypeRegistry.customTypes),
];
} }
/** /**
@@ -94,9 +91,7 @@ export class OutputTypeRegistry {
*/ */
static registerType(definition: OutputTypeDefinition): void { static registerType(definition: OutputTypeDefinition): void {
if (OutputTypeRegistry.builtInTypes[definition.name]) { if (OutputTypeRegistry.builtInTypes[definition.name]) {
OrchestratorLogger.logWarning( OrchestratorLogger.logWarning(`[OutputTypes] Cannot override built-in type '${definition.name}'`);
`[OutputTypes] Cannot override built-in type '${definition.name}'`,
);
return; return;
} }
@@ -114,7 +109,10 @@ export class OutputTypeRegistry {
return []; return [];
} }
const names = outputTypesInput.split(',').map((s) => s.trim()).filter(Boolean); const names = outputTypesInput
.split(',')
.map((s) => s.trim())
.filter(Boolean);
const types: OutputTypeDefinition[] = []; const types: OutputTypeDefinition[] = [];
for (const name of names) { for (const name of names) {