Merge pull request #14513 from backstage/revert-14500-repo-build-pass-config

Revert "cli: allow passing --config option to repo build command"
This commit is contained in:
Patrik Oldsberg
2022-11-08 14:42:04 +01:00
committed by GitHub
4 changed files with 1 additions and 13 deletions
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/cli': patch
---
Allow passing `--config` option to `repo build` command
-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),
});
},