cli: type fixes.

Signed-off-by: Andreas Stenius <git@astekk.se>
This commit is contained in:
Andreas Stenius
2021-02-24 09:40:47 +01:00
parent fb30fc103b
commit bddf102f0f
2 changed files with 7 additions and 5 deletions
+1
View File
@@ -82,6 +82,7 @@
"inquirer": "^7.0.4",
"jest": "^26.0.1",
"jest-css-modules": "^2.1.0",
"json-schema": "^0.2.5",
"lodash": "^4.17.19",
"mini-css-extract-plugin": "^0.9.0",
"ora": "^4.0.3",
+6 -5
View File
@@ -15,12 +15,11 @@
*/
import { Command } from 'commander';
import { JSONSchema7 as JSONSchema } from 'json-schema';
import { stringify as stringifyYaml } from 'yaml';
import { loadCliConfig } from '../../lib/config';
import {
mergeConfigSchemas,
ConfigSchemaPackageEntry,
} from '@backstage/config-loader';
import { JsonObject } from '@backstage/config';
import { mergeConfigSchemas } from '@backstage/config-loader';
export default async (cmd: Command) => {
const { schema } = await loadCliConfig({
@@ -30,7 +29,9 @@ export default async (cmd: Command) => {
});
const merged = mergeConfigSchemas(
schema.serialize().schemas.map(_ => _.value),
(schema.serialize().schemas as JsonObject[]).map(
_ => _.value as JSONSchema,
),
);
merged.title = 'Application Configuration Schema';