mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-05-31 22:06:16 -07:00
style: fix prettier formatting
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
10
dist/index.js
generated
vendored
10
dist/index.js
generated
vendored
@@ -10144,10 +10144,7 @@ class OutputTypeRegistry {
|
||||
* Get all registered types (built-in + custom).
|
||||
*/
|
||||
static getAllTypes() {
|
||||
return [
|
||||
...Object.values(OutputTypeRegistry.builtInTypes),
|
||||
...Object.values(OutputTypeRegistry.customTypes),
|
||||
];
|
||||
return [...Object.values(OutputTypeRegistry.builtInTypes), ...Object.values(OutputTypeRegistry.customTypes)];
|
||||
}
|
||||
/**
|
||||
* Register a custom output type.
|
||||
@@ -10168,7 +10165,10 @@ class OutputTypeRegistry {
|
||||
if (!outputTypesInput) {
|
||||
return [];
|
||||
}
|
||||
const names = outputTypesInput.split(',').map((s) => s.trim()).filter(Boolean);
|
||||
const names = outputTypesInput
|
||||
.split(',')
|
||||
.map((s) => s.trim())
|
||||
.filter(Boolean);
|
||||
const types = [];
|
||||
for (const name of names) {
|
||||
const typeDef = OutputTypeRegistry.getType(name);
|
||||
|
||||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@@ -39,10 +39,15 @@ export class OutputService {
|
||||
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) {
|
||||
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)) {
|
||||
OrchestratorLogger.log(`[Output] No output found for '${typeDef.name}' at ${outputPath}`);
|
||||
@@ -68,7 +73,9 @@ export class OutputService {
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
@@ -83,10 +83,7 @@ export class OutputTypeRegistry {
|
||||
* Get all registered types (built-in + custom).
|
||||
*/
|
||||
static getAllTypes(): OutputTypeDefinition[] {
|
||||
return [
|
||||
...Object.values(OutputTypeRegistry.builtInTypes),
|
||||
...Object.values(OutputTypeRegistry.customTypes),
|
||||
];
|
||||
return [...Object.values(OutputTypeRegistry.builtInTypes), ...Object.values(OutputTypeRegistry.customTypes)];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -94,9 +91,7 @@ export class OutputTypeRegistry {
|
||||
*/
|
||||
static registerType(definition: OutputTypeDefinition): void {
|
||||
if (OutputTypeRegistry.builtInTypes[definition.name]) {
|
||||
OrchestratorLogger.logWarning(
|
||||
`[OutputTypes] Cannot override built-in type '${definition.name}'`,
|
||||
);
|
||||
OrchestratorLogger.logWarning(`[OutputTypes] Cannot override built-in type '${definition.name}'`);
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -114,7 +109,10 @@ export class OutputTypeRegistry {
|
||||
return [];
|
||||
}
|
||||
|
||||
const names = outputTypesInput.split(',').map((s) => s.trim()).filter(Boolean);
|
||||
const names = outputTypesInput
|
||||
.split(',')
|
||||
.map((s) => s.trim())
|
||||
.filter(Boolean);
|
||||
const types: OutputTypeDefinition[] = [];
|
||||
|
||||
for (const name of names) {
|
||||
|
||||
Reference in New Issue
Block a user