Revert "cli: allow passing --config option to repo build command"

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-11-08 14:17:15 +01:00
parent f5e70e9576
commit 28d4f4f117
4 changed files with 1 additions and 13 deletions
-1
View File
@@ -400,7 +400,6 @@ Commands:
Usage: backstage-cli repo build [options]
Options:
--config <path>
--all
--since <ref>
-h, --help
-1
View File
@@ -35,7 +35,6 @@ export function registerRepoCommand(program: Command) {
.description(
'Build packages in the project, excluding bundled app and backend packages.',
)
.option(...configOption)
.option(
'--all',
'Build all packages, including bundled app and backend packages.',
+1 -6
View File
@@ -152,14 +152,9 @@ export async function command(opts: OptionValues, cmd: Command): Promise<void> {
);
return;
}
const configPaths = opts.config?.length
? opts.config
: buildOptions.config ?? [];
await buildFrontend({
targetDir: pkg.dir,
configPaths,
configPaths: (buildOptions.config as string[]) ?? [],
writeStats: Boolean(buildOptions.stats),
});
},