Revert "cli: allow passing --config option to repo build command"
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -400,7 +400,6 @@ Commands:
|
||||
Usage: backstage-cli repo build [options]
|
||||
|
||||
Options:
|
||||
--config <path>
|
||||
--all
|
||||
--since <ref>
|
||||
-h, --help
|
||||
|
||||
@@ -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.',
|
||||
|
||||
@@ -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),
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user