Merge pull request #5521 from splunk/fix-yarn-build-lax

[Fixes #5520] yarn build does not have --lax option exposed
This commit is contained in:
Fredrik Adelöw
2021-05-03 14:26:09 +02:00
committed by GitHub
4 changed files with 10 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Added lax option to backstage-cli app:build command
+3
View File
@@ -111,6 +111,7 @@ Usage: backstage-cli app:build
Options:
--stats Write bundle stats to output directory
--lax Do not require environment variables to be set
--config <path> Config files to load instead of app-config.yaml (default: [])
-h, --help display help for command
```
@@ -486,6 +487,7 @@ Usage: backstage-cli config:print [options]
Options:
--package <name> Only load config schema that applies to the given package
--lax Do not require environment variables to be set
--frontend Print only the frontend configuration
--with-secrets Include secrets in the printed configuration
--format <format> Format to print the configuration in, either json or yaml [yaml]
@@ -506,6 +508,7 @@ Usage: backstage-cli config:check [options]
Options:
--package <name> Only load config schema that applies to the given package
--lax Do not require environment variables to be set
--config <path> Config files to load instead of app-config.yaml (default: [])
-h, --help display help for command
```
+1
View File
@@ -30,6 +30,7 @@ export default async (cmd: Command) => {
...(await loadCliConfig({
args: cmd.config,
fromPackage: name,
mockEnv: cmd.lax,
})),
});
};
+1
View File
@@ -29,6 +29,7 @@ export function registerCommands(program: CommanderStatic) {
.command('app:build')
.description('Build an app for a production release')
.option('--stats', 'Write bundle stats to output directory')
.option('--lax', 'Do not require environment variables to be set')
.option(...configOption)
.action(lazy(() => import('./app/build').then(m => m.default)));