@backstage/cli-module-config 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @backstage/cli-module-config
2
2
 
3
+ ## 0.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/cli-node@0.3.5
9
+ - @backstage/config-loader@1.11.4
10
+ - @backstage/config@1.3.10
11
+ - @backstage/cli-common@0.3.2
12
+
13
+ ## 0.1.8-next.0
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+ - @backstage/cli-node@0.3.5-next.0
19
+ - @backstage/config@1.3.10-next.0
20
+ - @backstage/config-loader@1.11.4-next.0
21
+ - @backstage/cli-common@0.3.2-next.0
22
+
3
23
  ## 0.1.7
4
24
 
5
25
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"docs.cjs.js","sources":["../../src/commands/docs.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { cli } from 'cleye';\nimport { JsonObject } from '@backstage/types';\nimport { mergeConfigSchemas } from '@backstage/config-loader';\nimport type { JSONSchema7 as JSONSchema } from 'json-schema';\nimport openBrowser from 'react-dev-utils/openBrowser';\nimport chalk from 'chalk';\nimport { loadCliConfig } from '../lib/config';\nimport type { CliCommandContext } from '@backstage/cli-node';\n\nconst DOCS_URL = 'https://config.backstage.io';\n\nexport default async ({ args, info }: CliCommandContext) => {\n const {\n flags: { package: pkg },\n } = cli(\n {\n name: info.usage,\n booleanFlagNegation: true,\n flags: {\n package: {\n type: String,\n description:\n 'Only include the schema that applies to the given package',\n },\n },\n },\n undefined,\n args,\n );\n\n const { schema: appSchemas } = await loadCliConfig({\n args: [],\n fromPackage: pkg,\n mockEnv: true,\n });\n\n const schema = mergeConfigSchemas(\n (appSchemas.serialize().schemas as JsonObject[]).map(\n _ => _.value as JSONSchema,\n ),\n );\n\n const url = `${DOCS_URL}#schema=${JSON.stringify(schema)}`;\n\n console.log();\n console.log(\n chalk.cyan(\n 'Opening configuration reference documentation in your browser...',\n ),\n );\n console.log(` ${chalk.cyan(url)}`);\n console.log();\n\n const opened = openBrowser(url);\n\n if (!opened) {\n console.log(\n chalk.yellow('⚠️ WARNING: Unable to open browser automatically.'),\n );\n console.log(chalk.yellow('Please open the URL manually in your browser.'));\n }\n};\n"],"names":["cli","loadCliConfig","mergeConfigSchemas","chalk","openBrowser"],"mappings":";;;;;;;;;;;;;;;AAyBA,MAAM,QAAA,GAAW,6BAAA;AAEjB,WAAe,OAAO,EAAE,IAAA,EAAM,IAAA,EAAK,KAAyB;AAC1D,EAAA,MAAM;AAAA,IACJ,KAAA,EAAO,EAAE,OAAA,EAAS,GAAA;AAAI,GACxB,GAAIA,SAAA;AAAA,IACF;AAAA,MACE,MAAM,IAAA,CAAK,KAAA;AAAA,MACX,mBAAA,EAAqB,IAAA;AAAA,MACrB,KAAA,EAAO;AAAA,QACL,OAAA,EAAS;AAAA,UACP,IAAA,EAAM,MAAA;AAAA,UACN,WAAA,EACE;AAAA;AACJ;AACF,KACF;AAAA,IACA,MAAA;AAAA,IACA;AAAA,GACF;AAEA,EAAA,MAAM,EAAE,MAAA,EAAQ,UAAA,EAAW,GAAI,MAAMC,oBAAA,CAAc;AAAA,IACjD,MAAM,EAAC;AAAA,IACP,WAAA,EAAa,GAAA;AAAA,IACb,OAAA,EAAS;AAAA,GACV,CAAA;AAED,EAAA,MAAM,MAAA,GAASC,+BAAA;AAAA,IACZ,UAAA,CAAW,SAAA,EAAU,CAAE,OAAA,CAAyB,GAAA;AAAA,MAC/C,OAAK,CAAA,CAAE;AAAA;AACT,GACF;AAEA,EAAA,MAAM,MAAM,CAAA,EAAG,QAAQ,WAAW,IAAA,CAAK,SAAA,CAAU,MAAM,CAAC,CAAA,CAAA;AAExD,EAAA,OAAA,CAAQ,GAAA,EAAI;AACZ,EAAA,OAAA,CAAQ,GAAA;AAAA,IACNC,sBAAA,CAAM,IAAA;AAAA,MACJ;AAAA;AACF,GACF;AACA,EAAA,OAAA,CAAQ,IAAI,CAAA,EAAA,EAAKA,sBAAA,CAAM,IAAA,CAAK,GAAG,CAAC,CAAA,CAAE,CAAA;AAClC,EAAA,OAAA,CAAQ,GAAA,EAAI;AAEZ,EAAA,MAAM,MAAA,GAASC,6BAAY,GAAG,CAAA;AAE9B,EAAA,IAAI,CAAC,MAAA,EAAQ;AACX,IAAA,OAAA,CAAQ,GAAA;AAAA,MACND,sBAAA,CAAM,OAAO,8DAAoD;AAAA,KACnE;AACA,IAAA,OAAA,CAAQ,GAAA,CAAIA,sBAAA,CAAM,MAAA,CAAO,+CAA+C,CAAC,CAAA;AAAA,EAC3E;AACF,CAAA;;;;"}
1
+ {"version":3,"file":"docs.cjs.js","sources":["../../src/commands/docs.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { cli } from 'cleye';\nimport { JsonObject } from '@backstage/types';\nimport { mergeConfigSchemas } from '@backstage/config-loader';\nimport type { JSONSchema7 as JSONSchema } from 'json-schema';\nimport openBrowser from 'react-dev-utils/openBrowser';\nimport chalk from 'chalk';\nimport { loadCliConfig } from '../lib/config';\nimport type { CliCommandContext } from '@backstage/cli-node';\n\nconst DOCS_URL = 'https://config.backstage.io';\n\nexport default async ({ args, info }: CliCommandContext) => {\n const {\n flags: { package: pkg },\n } = cli(\n {\n name: info.usage,\n booleanFlagNegation: true,\n flags: {\n package: {\n type: String,\n description:\n 'Only include the schema that applies to the given package',\n },\n },\n },\n undefined,\n args,\n );\n\n const { schema: appSchemas } = await loadCliConfig({\n args: [],\n fromPackage: pkg,\n mockEnv: true,\n });\n\n const schema = mergeConfigSchemas(\n (appSchemas.serialize().schemas as JsonObject[]).map(\n _ => _.value as JSONSchema,\n ),\n );\n\n const url = `${DOCS_URL}#schema=${JSON.stringify(schema)}`;\n\n console.log();\n console.log(\n chalk.cyan(\n 'Opening configuration reference documentation in your browser...',\n ),\n );\n console.log(` ${chalk.cyan(url)}`);\n console.log();\n\n const opened = openBrowser(url);\n\n if (!opened) {\n console.log(\n chalk.yellow('⚠️ WARNING: Unable to open browser automatically.'),\n );\n console.log(chalk.yellow('Please open the URL manually in your browser.'));\n }\n};\n"],"names":["cli","loadCliConfig","mergeConfigSchemas","chalk","openBrowser"],"mappings":";;;;;;;;;;;;;;;AAyBA,MAAM,QAAA,GAAW,6BAAA;AAEjB,WAAe,OAAO,EAAE,IAAA,EAAM,IAAA,EAAK,KAAyB;AAC1D,EAAA,MAAM;AAAA,IACJ,KAAA,EAAO,EAAE,OAAA,EAAS,GAAA;AAAI,GACxB,GAAIA,SAAA;AAAA,IACF;AAAA,MACE,MAAM,IAAA,CAAK,KAAA;AAAA,MACX,mBAAA,EAAqB,IAAA;AAAA,MACrB,KAAA,EAAO;AAAA,QACL,OAAA,EAAS;AAAA,UACP,IAAA,EAAM,MAAA;AAAA,UACN,WAAA,EACE;AAAA;AACJ;AACF,KACF;AAAA,IACA,MAAA;AAAA,IACA;AAAA,GACF;AAEA,EAAA,MAAM,EAAE,MAAA,EAAQ,UAAA,EAAW,GAAI,MAAMC,oBAAA,CAAc;AAAA,IACjD,MAAM,EAAC;AAAA,IACP,WAAA,EAAa,GAAA;AAAA,IACb,OAAA,EAAS;AAAA,GACV,CAAA;AAED,EAAA,MAAM,MAAA,GAASC,+BAAA;AAAA,IACZ,UAAA,CAAW,SAAA,EAAU,CAAE,OAAA,CAAyB,GAAA;AAAA,MAC/C,OAAK,CAAA,CAAE;AAAA;AACT,GACF;AAEA,EAAA,MAAM,MAAM,CAAA,EAAG,QAAQ,WAAW,IAAA,CAAK,SAAA,CAAU,MAAM,CAAC,CAAA,CAAA;AAExD,EAAA,OAAA,CAAQ,GAAA,EAAI;AACZ,EAAA,OAAA,CAAQ,GAAA;AAAA,IACNC,sBAAA,CAAM,IAAA;AAAA,MACJ;AAAA;AACF,GACF;AACA,EAAA,OAAA,CAAQ,IAAI,CAAA,EAAA,EAAKA,sBAAA,CAAM,IAAA,CAAK,GAAG,CAAC,CAAA,CAAE,CAAA;AAClC,EAAA,OAAA,CAAQ,GAAA,EAAI;AAEZ,EAAA,MAAM,MAAA,GAASC,6BAAY,GAAG,CAAA;AAE9B,EAAA,IAAI,CAAC,MAAA,EAAQ;AACX,IAAA,OAAA,CAAQ,GAAA;AAAA,MACND,sBAAA,CAAM,OAAO,8DAAoD;AAAA,KACnE;AACA,IAAA,OAAA,CAAQ,GAAA,CAAIA,sBAAA,CAAM,MAAA,CAAO,+CAA+C,CAAC,CAAA;AAAA,EAC3E;AACF,CAAA;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"print.cjs.js","sources":["../../src/commands/print.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { cli } from 'cleye';\nimport { stringify as stringifyYaml } from 'yaml';\nimport { AppConfig, ConfigReader } from '@backstage/config';\nimport { loadCliConfig } from '../lib/config';\nimport { ConfigSchema, ConfigVisibility } from '@backstage/config-loader';\nimport type { CliCommandContext } from '@backstage/cli-node';\n\nexport default async ({ args, info }: CliCommandContext) => {\n const {\n flags: { config, lax, frontend, withSecrets, format, package: pkg },\n } = cli(\n {\n name: info.usage,\n booleanFlagNegation: true,\n flags: {\n package: { type: String, description: 'Package to print config for' },\n lax: {\n type: Boolean,\n description: 'Do not require environment variables to be set',\n },\n frontend: { type: Boolean, description: 'Only print frontend config' },\n withSecrets: {\n type: Boolean,\n description: 'Include secrets in the output',\n },\n format: { type: String, description: 'Output format (yaml or json)' },\n config: {\n type: [String],\n description: 'Config files to load instead of app-config.yaml',\n },\n },\n },\n undefined,\n args,\n );\n\n const { schema, appConfigs } = await loadCliConfig({\n args: config,\n fromPackage: pkg,\n mockEnv: lax,\n fullVisibility: !frontend,\n });\n const visibility = getVisibilityOption(frontend, withSecrets);\n const data = serializeConfigData(appConfigs, schema, visibility);\n\n if (format === 'json') {\n process.stdout.write(`${JSON.stringify(data, null, 2)}\\n`);\n } else {\n process.stdout.write(`${stringifyYaml(data)}\\n`);\n }\n};\n\nfunction getVisibilityOption(\n frontend: boolean | undefined,\n withSecrets: boolean | undefined,\n): ConfigVisibility {\n if (frontend && withSecrets) {\n throw new Error('Not allowed to combine frontend and secret config');\n }\n if (frontend) {\n return 'frontend';\n } else if (withSecrets) {\n return 'secret';\n }\n return 'backend';\n}\n\nfunction serializeConfigData(\n appConfigs: AppConfig[],\n schema: ConfigSchema,\n visibility: ConfigVisibility,\n) {\n if (visibility === 'frontend') {\n const frontendConfigs = schema.process(appConfigs, {\n visibility: ['frontend'],\n });\n return ConfigReader.fromConfigs(frontendConfigs).get();\n } else if (visibility === 'secret') {\n return ConfigReader.fromConfigs(appConfigs).get();\n }\n\n const sanitizedConfigs = schema.process(appConfigs, {\n valueTransform: (value, context) =>\n context.visibility === 'secret' ? '<secret>' : value,\n });\n\n return ConfigReader.fromConfigs(sanitizedConfigs).get();\n}\n"],"names":["config","cli","loadCliConfig","stringifyYaml","ConfigReader"],"mappings":";;;;;;;;;AAuBA,YAAe,OAAO,EAAE,IAAA,EAAM,IAAA,EAAK,KAAyB;AAC1D,EAAA,MAAM;AAAA,IACJ,KAAA,EAAO,UAAEA,QAAA,EAAQ,GAAA,EAAK,UAAU,WAAA,EAAa,MAAA,EAAQ,SAAS,GAAA;AAAI,GACpE,GAAIC,SAAA;AAAA,IACF;AAAA,MACE,MAAM,IAAA,CAAK,KAAA;AAAA,MACX,mBAAA,EAAqB,IAAA;AAAA,MACrB,KAAA,EAAO;AAAA,QACL,OAAA,EAAS,EAAE,IAAA,EAAM,MAAA,EAAQ,aAAa,6BAAA,EAA8B;AAAA,QACpE,GAAA,EAAK;AAAA,UACH,IAAA,EAAM,OAAA;AAAA,UACN,WAAA,EAAa;AAAA,SACf;AAAA,QACA,QAAA,EAAU,EAAE,IAAA,EAAM,OAAA,EAAS,aAAa,4BAAA,EAA6B;AAAA,QACrE,WAAA,EAAa;AAAA,UACX,IAAA,EAAM,OAAA;AAAA,UACN,WAAA,EAAa;AAAA,SACf;AAAA,QACA,MAAA,EAAQ,EAAE,IAAA,EAAM,MAAA,EAAQ,aAAa,8BAAA,EAA+B;AAAA,QACpE,MAAA,EAAQ;AAAA,UACN,IAAA,EAAM,CAAC,MAAM,CAAA;AAAA,UACb,WAAA,EAAa;AAAA;AACf;AACF,KACF;AAAA,IACA,MAAA;AAAA,IACA;AAAA,GACF;AAEA,EAAA,MAAM,EAAE,MAAA,EAAQ,UAAA,EAAW,GAAI,MAAMC,oBAAA,CAAc;AAAA,IACjD,IAAA,EAAMF,QAAA;AAAA,IACN,WAAA,EAAa,GAAA;AAAA,IACb,OAAA,EAAS,GAAA;AAAA,IACT,gBAAgB,CAAC;AAAA,GAClB,CAAA;A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,EAAY;AAAA,IAClD,gBAAgB,CAAC,KAAA,EAAO,YACtB,OAAA,CAAQ,UAAA,KAAe,WAAW,UAAA,GAAa;AAAA,GAClD,CAAA;AAED,EAAA,OAAOA,qBAAA,CAAa,WAAA,CAAY,gBAAgB,CAAA,CAAE,GAAA,EAAI;AACxD;;;;"}
1
+ {"version":3,"file":"print.cjs.js","sources":["../../src/commands/print.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { cli } from 'cleye';\nimport { stringify as stringifyYaml } from 'yaml';\nimport { AppConfig, ConfigReader } from '@backstage/config';\nimport { loadCliConfig } from '../lib/config';\nimport { ConfigSchema, ConfigVisibility } from '@backstage/config-loader';\nimport type { CliCommandContext } from '@backstage/cli-node';\n\nexport default async ({ args, info }: CliCommandContext) => {\n const {\n flags: { config, lax, frontend, withSecrets, format, package: pkg },\n } = cli(\n {\n name: info.usage,\n booleanFlagNegation: true,\n flags: {\n package: { type: String, description: 'Package to print config for' },\n lax: {\n type: Boolean,\n description: 'Do not require environment variables to be set',\n },\n frontend: { type: Boolean, description: 'Only print frontend config' },\n withSecrets: {\n type: Boolean,\n description: 'Include secrets in the output',\n },\n format: { type: String, description: 'Output format (yaml or json)' },\n config: {\n type: [String],\n description: 'Config files to load instead of app-config.yaml',\n },\n },\n },\n undefined,\n args,\n );\n\n const { schema, appConfigs } = await loadCliConfig({\n args: config,\n fromPackage: pkg,\n mockEnv: lax,\n fullVisibility: !frontend,\n });\n const visibility = getVisibilityOption(frontend, withSecrets);\n const data = serializeConfigData(appConfigs, schema, visibility);\n\n if (format === 'json') {\n process.stdout.write(`${JSON.stringify(data, null, 2)}\\n`);\n } else {\n process.stdout.write(`${stringifyYaml(data)}\\n`);\n }\n};\n\nfunction getVisibilityOption(\n frontend: boolean | undefined,\n withSecrets: boolean | undefined,\n): ConfigVisibility {\n if (frontend && withSecrets) {\n throw new Error('Not allowed to combine frontend and secret config');\n }\n if (frontend) {\n return 'frontend';\n } else if (withSecrets) {\n return 'secret';\n }\n return 'backend';\n}\n\nfunction serializeConfigData(\n appConfigs: AppConfig[],\n schema: ConfigSchema,\n visibility: ConfigVisibility,\n) {\n if (visibility === 'frontend') {\n const frontendConfigs = schema.process(appConfigs, {\n visibility: ['frontend'],\n });\n return ConfigReader.fromConfigs(frontendConfigs).get();\n } else if (visibility === 'secret') {\n return ConfigReader.fromConfigs(appConfigs).get();\n }\n\n const sanitizedConfigs = schema.process(appConfigs, {\n valueTransform: (value, context) =>\n context.visibility === 'secret' ? '<secret>' : value,\n });\n\n return ConfigReader.fromConfigs(sanitizedConfigs).get();\n}\n"],"names":["config","cli","loadCliConfig","stringifyYaml","ConfigReader"],"mappings":";;;;;;;;;AAuBA,YAAe,OAAO,EAAE,IAAA,EAAM,IAAA,EAAK,KAAyB;AAC1D,EAAA,MAAM;AAAA,IACJ,KAAA,EAAO,UAAEA,QAAA,EAAQ,GAAA,EAAK,UAAU,WAAA,EAAa,MAAA,EAAQ,SAAS,GAAA;AAAI,GACpE,GAAIC,SAAA;AAAA,IACF;AAAA,MACE,MAAM,IAAA,CAAK,KAAA;AAAA,MACX,mBAAA,EAAqB,IAAA;AAAA,MACrB,KAAA,EAAO;AAAA,QACL,OAAA,EAAS,EAAE,IAAA,EAAM,MAAA,EAAQ,aAAa,6BAAA,EAA8B;AAAA,QACpE,GAAA,EAAK;AAAA,UACH,IAAA,EAAM,OAAA;AAAA,UACN,WAAA,EAAa;AAAA,SACf;AAAA,QACA,QAAA,EAAU,EAAE,IAAA,EAAM,OAAA,EAAS,aAAa,4BAAA,EAA6B;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,EACT;AACA,EAAA,OAAO,SAAA;AACT;AAEA,SAAS,mBAAA,CACP,UAAA,EACA,MAAA,EACA,UAAA,EACA;AACA,EAAA,IAAI,eAAe,UAAA,EAAY;AAC7B,IAAA,MAAM,eAAA,GAAkB,MAAA,CAAO,OAAA,CAAQ,UAAA,EAAY;AAAA,MACjD,UAAA,EAAY,CAAC,UAAU;AAAA,KACxB,CAAA;AACD,IAAA,OAAOC,qBAAA,CAAa,WAAA,CAAY,eAAe,CAAA,CAAE,GAAA,EAAI;AAAA,EACvD,CAAA,MAAA,IAAW,eAAe,QAAA,EAAU;AAClC,IAAA,OAAOA,qBAAA,CAAa,WAAA,CAAY,UAAU,CAAA,CAAE,GAAA,EAAI;AAAA,EAClD;AAEA,EAAA,MAAM,gBAAA,GAAmB,MAAA,CAAO,OAAA,CAAQ,UAAA,EAAY;AAAA,IAClD,gBAAgB,CAAC,KAAA,EAAO,YACtB,OAAA,CAAQ,UAAA,KAAe,WAAW,UAAA,GAAa;AAAA,GAClD,CAAA;AAED,EAAA,OAAOA,qBAAA,CAAa,WAAA,CAAY,gBAAgB,CAAA,CAAE,GAAA,EAAI;AACxD;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"schema.cjs.js","sources":["../../src/commands/schema.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { cli } from 'cleye';\nimport type { JSONSchema7 as JSONSchema } from 'json-schema';\nimport { stringify as stringifyYaml } from 'yaml';\nimport { loadCliConfig } from '../lib/config';\nimport { JsonObject } from '@backstage/types';\nimport { mergeConfigSchemas } from '@backstage/config-loader';\nimport type { CliCommandContext } from '@backstage/cli-node';\n\nexport default async ({ args, info }: CliCommandContext) => {\n const {\n flags: { merge, format, package: pkg, strict },\n } = cli(\n {\n name: info.usage,\n booleanFlagNegation: true,\n flags: {\n package: { type: String, description: 'Package to print schema for' },\n format: { type: String, description: 'Output format (yaml or json)' },\n merge: {\n type: Boolean,\n description: 'Merge all schemas into a single schema',\n },\n strict: {\n type: Boolean,\n description: 'Treat TypeScript configuration schema errors as fatal',\n },\n },\n },\n undefined,\n args,\n );\n\n const { schema } = await loadCliConfig({\n args: [],\n fromPackage: pkg,\n mockEnv: true,\n strict,\n });\n\n let configSchema: JsonObject | JSONSchema;\n if (merge) {\n configSchema = mergeConfigSchemas(\n (schema.serialize().schemas as JsonObject[]).map(\n _ => _.value as JSONSchema,\n ),\n );\n configSchema.title = 'Application Configuration Schema';\n configSchema.description =\n 'This is the schema describing the structure of the app-config.yaml configuration file.';\n } else {\n configSchema = schema.serialize();\n }\n\n if (format === 'json') {\n process.stdout.write(`${JSON.stringify(configSchema, null, 2)}\\n`);\n } else {\n process.stdout.write(`${stringifyYaml(configSchema)}\\n`);\n }\n};\n"],"names":["cli","loadCliConfig","mergeConfigSchemas","stringifyYaml"],"mappings":";;;;;;;;;AAwBA,aAAe,OAAO,EAAE,IAAA,EAAM,IAAA,EAAK,KAAyB;AAC1D,EAAA,MAAM;AAAA,IACJ,OAAO,EAAE,KAAA,EAAO,MAAA,EAAQ,OAAA,EAAS,KAAK,MAAA;AAAO,GAC/C,GAAIA,SAAA;AAAA,IACF;AAAA,MACE,MAAM,IAAA,CAAK,KAAA;AAAA,MACX,mBAAA,EAAqB,IAAA;AAAA,MACrB,KAAA,EAAO;AAAA,QACL,OAAA,EAAS,EAAE,IAAA,EAAM,MAAA,EAAQ,aAAa,6BAAA,EAA8B;AAAA,QACpE,MAAA,EAAQ,EAAE,IAAA,EAAM,MAAA,EAAQ,aAAa,8BAAA,EAA+B;AAAA,QACpE,KAAA,EAAO;AAAA,UACL,IAAA,EAAM,OAAA;AAAA,UACN,WAAA,EAAa;AAAA,SACf;AAAA,QACA,MAAA,EAAQ;AAAA,UACN,IAAA,EAAM,OAAA;AAAA,UACN,WAAA,EAAa;AAAA;AACf;AACF,KACF;AAAA,IACA,MAAA;AAAA,IACA;AAAA,GACF;AAEA,EAAA,MAAM,EAAE,MAAA,EAAO,GAAI,MAAMC,oBAAA,CAAc;AAAA,IACrC,MAAM,EAAC;AAAA,IACP,WAAA,EAAa,GAAA;AAAA,IACb,OAAA,EAAS,IAAA;AAAA,IACT;AAAA,GACD,CAAA;AAED,EAAA,IAAI,YAAA;AACJ,EAAA,IAAI,KAAA,EAAO;AACT,IAAA,YAAA,GAAeC,+BAAA;AAAA,MACZ,MAAA,CAAO,SAAA,EAAU,CAAE,OAAA,CAAyB,GAAA;AAAA,QAC3C,OAAK,CAAA,CAAE;AAAA;AACT,KACF;AACA,IAAA,YAAA,CAAa,KAAA,GAAQ,kCAAA;AACrB,IAAA,YAAA,CAAa,WAAA,GACX,wFAAA;AAAA,EACJ,CAAA,MAAO;AACL,IAAA,YAAA,GAAe,OAAO,SAAA,EAAU;AAAA,EAClC;AAEA,EAAA,IAAI,WAAW,MAAA,EAAQ;AACrB,IAAA,OAAA,CAAQ,MAAA,CAAO,MAAM,CAAA,EAAG,IAAA,CAAK,UAAU,YAAA,EAAc,IAAA,EAAM,CAAC,CAAC;AAAA,CAAI,CAAA;AAAA,EACnE,CAAA,MAAO;AACL,IAAA,OAAA,CAAQ,MAAA,CAAO,KAAA,CAAM,CAAA,EAAGC,cAAA,CAAc,YAAY,CAAC;AAAA,CAAI,CAAA;AAAA,EACzD;AACF,CAAA;;;;"}
1
+ {"version":3,"file":"schema.cjs.js","sources":["../../src/commands/schema.ts"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { cli } from 'cleye';\nimport type { JSONSchema7 as JSONSchema } from 'json-schema';\nimport { stringify as stringifyYaml } from 'yaml';\nimport { loadCliConfig } from '../lib/config';\nimport { JsonObject } from '@backstage/types';\nimport { mergeConfigSchemas } from '@backstage/config-loader';\nimport type { CliCommandContext } from '@backstage/cli-node';\n\nexport default async ({ args, info }: CliCommandContext) => {\n const {\n flags: { merge, format, package: pkg, strict },\n } = cli(\n {\n name: info.usage,\n booleanFlagNegation: true,\n flags: {\n package: { type: String, description: 'Package to print schema for' },\n format: { type: String, description: 'Output format (yaml or json)' },\n merge: {\n type: Boolean,\n description: 'Merge all schemas into a single schema',\n },\n strict: {\n type: Boolean,\n description: 'Treat TypeScript configuration schema errors as fatal',\n },\n },\n },\n undefined,\n args,\n );\n\n const { schema } = await loadCliConfig({\n args: [],\n fromPackage: pkg,\n mockEnv: true,\n strict,\n });\n\n let configSchema: JsonObject | JSONSchema;\n if (merge) {\n configSchema = mergeConfigSchemas(\n (schema.serialize().schemas as JsonObject[]).map(\n _ => _.value as JSONSchema,\n ),\n );\n configSchema.title = 'Application Configuration Schema';\n configSchema.description =\n 'This is the schema describing the structure of the app-config.yaml configuration file.';\n } else {\n configSchema = schema.serialize();\n }\n\n if (format === 'json') {\n process.stdout.write(`${JSON.stringify(configSchema, null, 2)}\\n`);\n } else {\n process.stdout.write(`${stringifyYaml(configSchema)}\\n`);\n }\n};\n"],"names":["cli","loadCliConfig","mergeConfigSchemas","stringifyYaml"],"mappings":";;;;;;;;;AAwBA,aAAe,OAAO,EAAE,IAAA,EAAM,IAAA,EAAK,KAAyB;AAC1D,EAAA,MAAM;AAAA,IACJ,OAAO,EAAE,KAAA,EAAO,MAAA,EAAQ,OAAA,EAAS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L,IAAA,OAAA,CAAQ,MAAA,CAAO,KAAA,CAAM,CAAA,EAAGC,cAAA,CAAc,YAAY,CAAC;AAAA,CAAI,CAAA;AAAA,EACzD;AACF,CAAA;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"validate.cjs.js","sources":["../../src/commands/validate.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { cli } from 'cleye';\nimport { loadCliConfig } from '../lib/config';\nimport type { CliCommandContext } from '@backstage/cli-node';\n\nexport default async ({ args, info }: CliCommandContext) => {\n const {\n flags: { config, lax, frontend, deprecated, strict, package: pkg },\n } = cli(\n {\n name: info.usage,\n booleanFlagNegation: true,\n flags: {\n package: {\n type: String,\n description: 'Package to validate config for',\n },\n lax: {\n type: Boolean,\n description: 'Do not require environment variables to be set',\n },\n frontend: {\n type: Boolean,\n description: 'Only validate frontend config',\n },\n deprecated: { type: Boolean, description: 'Output deprecated keys' },\n strict: { type: Boolean, description: 'Enable strict validation' },\n config: {\n type: [String],\n description: 'Config files to load instead of app-config.yaml',\n },\n },\n },\n undefined,\n args,\n );\n\n await loadCliConfig({\n args: config,\n fromPackage: pkg,\n mockEnv: lax,\n fullVisibility: !frontend,\n withDeprecatedKeys: deprecated,\n strict,\n });\n};\n"],"names":["config","cli","loadCliConfig"],"mappings":";;;;;;;AAoBA,eAAe,OAAO,EAAE,IAAA,EAAM,IAAA,EAAK,KAAyB;AAC1D,EAAA,MAAM;AAAA,IACJ,KAAA,EAAO,UAAEA,QAAA,EAAQ,GAAA,EAAK,UAAU,UAAA,EAAY,MAAA,EAAQ,SAAS,GAAA;AAAI,GACnE,GAAIC,SAAA;AAAA,IACF;AAAA,MACE,MAAM,IAAA,CAAK,KAAA;AAAA,MACX,mBAAA,EAAqB,IAAA;AAAA,MACrB,KAAA,EAAO;AAAA,QACL,OAAA,EAAS;AAAA,UACP,IAAA,EAAM,MAAA;AAAA,UACN,WAAA,EAAa;AAAA,SACf;AAAA,QACA,GAAA,EAAK;AAAA,UACH,IAAA,EAAM,OAAA;AAAA,UACN,WAAA,EAAa;AAAA,SACf;AAAA,QACA,QAAA,EAAU;AAAA,UACR,IAAA,EAAM,OAAA;AAAA,UACN,WAAA,EAAa;AAAA,SACf;AAAA,QACA,UAAA,EAAY,EAAE,IAAA,EAAM,OAAA,EAAS,aAAa,wBAAA,EAAyB;AAAA,QACnE,MAAA,EAAQ,EAAE,IAAA,EAAM,OAAA,EAAS,aAAa,0BAAA,EAA2B;AAAA,QACjE,MAAA,EAAQ;AAAA,UACN,IAAA,EAAM,CAAC,MAAM,CAAA;AAAA,UACb,WAAA,EAAa;AAAA;AACf;AACF,KACF;AAAA,IACA,MAAA;AAAA,IACA;AAAA,GACF;AAEA,EAAA,MAAMC,oBAAA,CAAc;AAAA,IAClB,IAAA,EAAMF,QAAA;AAAA,IACN,WAAA,EAAa,GAAA;AAAA,IACb,OAAA,EAAS,GAAA;AAAA,IACT,gBAAgB,CAAC,QAAA;AAAA,IACjB,kBAAA,EAAoB,UAAA;AAAA,IACpB;AAAA,GACD,CAAA;AACH,CAAA;;;;"}
1
+ {"version":3,"file":"validate.cjs.js","sources":["../../src/commands/validate.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { cli } from 'cleye';\nimport { loadCliConfig } from '../lib/config';\nimport type { CliCommandContext } from '@backstage/cli-node';\n\nexport default async ({ args, info }: CliCommandContext) => {\n const {\n flags: { config, lax, frontend, deprecated, strict, package: pkg },\n } = cli(\n {\n name: info.usage,\n booleanFlagNegation: true,\n flags: {\n package: {\n type: String,\n description: 'Package to validate config for',\n },\n lax: {\n type: Boolean,\n description: 'Do not require environment variables to be set',\n },\n frontend: {\n type: Boolean,\n description: 'Only validate frontend config',\n },\n deprecated: { type: Boolean, description: 'Output deprecated keys' },\n strict: { type: Boolean, description: 'Enable strict validation' },\n config: {\n type: [String],\n description: 'Config files to load instead of app-config.yaml',\n },\n },\n },\n undefined,\n args,\n );\n\n await loadCliConfig({\n args: config,\n fromPackage: pkg,\n mockEnv: lax,\n fullVisibility: !frontend,\n withDeprecatedKeys: deprecated,\n strict,\n });\n};\n"],"names":["config","cli","loadCliConfig"],"mappings":";;;;;;;AAoBA,eAAe,OAAO,EAAE,IAAA,EAAM,IAAA,EAAK,KAAyB;AAC1D,EAAA,MAAM;AAAA,IACJ,KAAA,EAAO,UAAEA,QAAA,EAAQ,GAAA,EAAK,UAAU,UAAA,EAAY,MAAA,EAAQ,SAAS,GAAA;AAAI,GACnE,GAAIC,SAAA;AAAA,IACF;AAAA,MACE,MAAM,IAAA,CAAK,KAAA;AAAA,MACX,mBAAA,EAAqB,IAAA;AAAA,MACrB,KAAA,EAAO;AAAA,QACL,OAAA,EAAS;AAAA,UACP,IAAA,EAAM,MAAA;AAAA,UACN,WAAA,EAAa;AAAA,SACf;AAAA,QACA,GAAA,EAAK;AAAA,UACH,IAAA,EAAM,OAAA;AAAA,UACN,WAAA,EAAa;AAAA,SACf;AAAA,QACA,QAAA,EAAU;AAAA,UACR,IAAA,EAAM,OAAA;AAAA,UACN,WAAA,EAAa;AAAA,SACf;AAAA,QACA,UAAA,EAAY,EAAE,IAAA,EAAM,OAAA,EAAS,aAAa,wBAAA,EAAyB;AAAA,QACnE,MAAA,EAAQ,EAAE,IAAA,EAAM,OAAA,EAAS,aAAa,0BAAA,EAA2B;AAAA,QACjE,MAAA,EAAQ;AAAA,UACN,IAAA,EAAM,CAAC,MAAM,CAAA;AAAA,UACb,WAAA,EAAa;AAAA;AACf;AACF,KACF;AAAA,IACA,MAAA;AAAA,IACA;AAAA,GACF;AAEA,EAAA,MAAMC,oBAAA,CAAc;AAAA,IAClB,IAAA,EAAMF,QAAA;AAAA,IACN,WAAA,EAAa,GAAA;AAAA,IACb,OAAA,EAAS,GAAA;AAAA,IACT,gBAAgB,CAAC,QAAA;AAAA,IACjB,kBAAA,EAAoB,UAAA;AAAA,IACpB;AAAA,GACD,CAAA;AACH,CAAA;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createCliModule } from '@backstage/cli-node';\nimport packageJson from '../package.json';\n\nexport default createCliModule({\n packageJson,\n init: async reg => {\n reg.addCommand({\n path: ['config:docs'],\n description: 'Browse the configuration reference documentation',\n execute: { loader: () => import('./commands/docs') },\n });\n reg.addCommand({\n path: ['config', 'docs'],\n description: 'Browse the configuration reference documentation',\n execute: { loader: () => import('./commands/docs') },\n });\n reg.addCommand({\n path: ['config:print'],\n description: 'Print the app configuration for the current package',\n execute: { loader: () => import('./commands/print') },\n });\n reg.addCommand({\n path: ['config:check'],\n description:\n 'Validate that the given configuration loads and matches schema',\n execute: { loader: () => import('./commands/validate') },\n });\n reg.addCommand({\n path: ['config:schema'],\n description: 'Print the JSON schema for the given configuration',\n execute: { loader: () => import('./commands/schema') },\n });\n reg.addCommand({\n path: ['config', 'schema'],\n description: 'Print the JSON schema for the given configuration',\n execute: { loader: () => import('./commands/schema') },\n });\n },\n});\n"],"names":["createCliModule","packageJson"],"mappings":";;;;;;;AAkBA,YAAeA,uBAAA,CAAgB;AAAA,eAC7BC,gBAAA;AAAA,EACA,IAAA,EAAM,OAAM,GAAA,KAAO;AACjB,IAAA,GAAA,CAAI,UAAA,CAAW;AAAA,MACb,IAAA,EAAM,CAAC,aAAa,CAAA;AAAA,MACpB,WAAA,EAAa,kDAAA;AAAA,MACb,SAAS,EAAE,MAAA,EAAQ,MAAM,OAAO,wBAAiB,CAAA;AAAE,KACpD,CAAA;AACD,IAAA,GAAA,CAAI,UAAA,CAAW;AAAA,MACb,IAAA,EAAM,CAAC,QAAA,EAAU,MAAM,CAAA;AAAA,MACvB,WAAA,EAAa,kDAAA;AAAA,MACb,SAAS,EAAE,MAAA,EAAQ,MAAM,OAAO,wBAAiB,CAAA;AAAE,KACpD,CAAA;AACD,IAAA,GAAA,CAAI,UAAA,CAAW;AAAA,MACb,IAAA,EAAM,CAAC,cAAc,CAAA;AAAA,MACrB,WAAA,EAAa,qDAAA;AAAA,MACb,SAAS,EAAE,MAAA,EAAQ,MAAM,OAAO,yBAAkB,CAAA;AAAE,KACrD,CAAA;AACD,IAAA,GAAA,CAAI,UAAA,CAAW;AAAA,MACb,IAAA,EAAM,CAAC,cAAc,CAAA;AAAA,MACrB,WAAA,EACE,gEAAA;AAAA,MACF,SAAS,EAAE,MAAA,EAAQ,MAAM,OAAO,4BAAqB,CAAA;AAAE,KACxD,CAAA;AACD,IAAA,GAAA,CAAI,UAAA,CAAW;AAAA,MACb,IAAA,EAAM,CAAC,eAAe,CAAA;AAAA,MACtB,WAAA,EAAa,mDAAA;AAAA,MACb,SAAS,EAAE,MAAA,EAAQ,MAAM,OAAO,0BAAmB,CAAA;AAAE,KACtD,CAAA;AACD,IAAA,GAAA,CAAI,UAAA,CAAW;AAAA,MACb,IAAA,EAAM,CAAC,QAAA,EAAU,QAAQ,CAAA;AAAA,MACzB,WAAA,EAAa,mDAAA;AAAA,MACb,SAAS,EAAE,MAAA,EAAQ,MAAM,OAAO,0BAAmB,CAAA;AAAE,KACtD,CAAA;AAAA,EACH;AACF,CAAC,CAAA;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createCliModule } from '@backstage/cli-node';\nimport packageJson from '../package.json';\n\nexport default createCliModule({\n packageJson,\n init: async reg => {\n reg.addCommand({\n path: ['config:docs'],\n description: 'Browse the configuration reference documentation',\n execute: { loader: () => import('./commands/docs') },\n });\n reg.addCommand({\n path: ['config', 'docs'],\n description: 'Browse the configuration reference documentation',\n execute: { loader: () => import('./commands/docs') },\n });\n reg.addCommand({\n path: ['config:print'],\n description: 'Print the app configuration for the current package',\n execute: { loader: () => import('./commands/print') },\n });\n reg.addCommand({\n path: ['config:check'],\n description:\n 'Validate that the given configuration loads and matches schema',\n execute: { loader: () => import('./commands/validate') },\n });\n reg.addCommand({\n path: ['config:schema'],\n description: 'Print the JSON schema for the given configuration',\n execute: { loader: () => import('./commands/schema') },\n });\n reg.addCommand({\n path: ['config', 'schema'],\n description: 'Print the JSON schema for the given configuration',\n execute: { loader: () => import('./commands/schema') },\n });\n },\n});\n"],"names":["createCliModule","packageJson"],"mappings":";;;;;;;AAkBA,YAAeA,uBAAA,CAAgB;A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C,CAAA;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"config.cjs.js","sources":["../../src/lib/config.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ConfigSources, loadConfigSchema } from '@backstage/config-loader';\nimport { AppConfig, ConfigReader } from '@backstage/config';\nimport { targetPaths } from '@backstage/cli-common';\n\nimport { getPackages } from '@manypkg/get-packages';\nimport { PackageGraph } from '@backstage/cli-node';\nimport { resolve as resolvePath } from 'node:path';\n\ntype Options = {\n args: string[];\n targetDir?: string;\n fromPackage?: string;\n mockEnv?: boolean;\n withDeprecatedKeys?: boolean;\n fullVisibility?: boolean;\n strict?: boolean;\n};\n\nexport async function loadCliConfig(options: Options) {\n const targetDir = options.targetDir ?? targetPaths.dir;\n\n // Consider all packages in the monorepo when loading in config\n const { packages } = await getPackages(targetDir);\n\n let localPackageNames;\n if (options.fromPackage) {\n if (packages.length) {\n const graph = PackageGraph.fromPackages(packages);\n localPackageNames = Array.from(\n graph.collectPackageNames([options.fromPackage], node => {\n // Workaround for Backstage main repo only, since the CLI has some artificial devDependencies\n if (node.name === '@backstage/cli') {\n return undefined;\n }\n return node.localDependencies.keys();\n }),\n );\n } else {\n // No packages: it means that it's not a monorepo (e.g. standalone plugin)\n localPackageNames = [options.fromPackage];\n }\n } else {\n localPackageNames = packages.map(p => p.packageJson.name);\n }\n\n const schema = await loadConfigSchema({\n dependencies: localPackageNames,\n // Include the package.json in the project root if it exists\n packagePaths: [targetPaths.resolveRoot('package.json')],\n noUndeclaredProperties: options.strict,\n onSchemaError: options.strict\n ? undefined\n : error => console.warn(error.message),\n });\n\n const source = ConfigSources.default({\n allowMissingDefaultConfig: true,\n substitutionFunc: options.mockEnv\n ? async name => process.env[name] || 'x'\n : undefined,\n rootDir: targetPaths.rootDir,\n argv: options.args.flatMap(t => ['--config', resolvePath(targetDir, t)]),\n });\n\n const appConfigs = await new Promise<AppConfig[]>((resolve, reject) => {\n async function readConfig() {\n let loaded = false;\n try {\n const abortController = new AbortController();\n for await (const { configs } of source.readConfigData({\n signal: abortController.signal,\n })) {\n resolve(configs);\n loaded = true;\n abortController.abort();\n }\n } catch (error) {\n if (!loaded) {\n reject(error);\n }\n }\n }\n readConfig();\n });\n\n const configurationLoadedMessage = appConfigs.length\n ? `Loaded config from ${appConfigs.map(c => c.context).join(', ')}`\n : `No configuration files found, running without config`;\n\n // printing to stderr to not clobber stdout in case the cli command\n // outputs structured data (e.g. as config:schema does)\n process.stderr.write(`${configurationLoadedMessage}\\n`);\n\n try {\n const frontendAppConfigs = schema.process(appConfigs, {\n visibility: options.fullVisibility\n ? ['frontend', 'backend', 'secret']\n : ['frontend'],\n withDeprecatedKeys: options.withDeprecatedKeys,\n ignoreSchemaErrors: !options.strict,\n });\n const frontendConfig = ConfigReader.fromConfigs(frontendAppConfigs);\n\n const fullConfig = ConfigReader.fromConfigs(appConfigs);\n\n return {\n schema,\n appConfigs,\n frontendConfig,\n frontendAppConfigs,\n fullConfig,\n };\n } catch (error) {\n const maybeSchemaError = error as Error & { messages?: string[] };\n if (maybeSchemaError.messages) {\n const messages = maybeSchemaError.messages.join('\\n ');\n throw new Error(`Configuration does not match schema\\n\\n ${messages}`);\n }\n throw error;\n }\n}\n"],"names":["targetPaths","getPackages","PackageGraph","loadConfigSchema","ConfigSources","resolvePath","ConfigReader"],"mappings":";;;;;;;;;AAkCA,eAAsB,cAAc,OAAA,EAAkB;AACpD,EAAA,MAAM,SAAA,GAAY,OAAA,CAAQ,SAAA,IAAaA,qBAAA,CAAY,GAAA;AAGnD,EAAA,MAAM,EAAE,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AY;AAAA,MACpD,UAAA,EAAY,QAAQ,cAAA,GAChB,CAAC,YAAY,SAAA,EAAW,QAAQ,CAAA,GAChC,CAAC,UAAU,CAAA;AAAA,MACf,oBAAoB,OAAA,CAAQ,kBAAA;AAAA,MAC5B,kBAAA,EAAoB,CAAC,OAAA,CAAQ;AAAA,KAC9B,CAAA;AACD,IAAA,MAAM,cAAA,GAAiBC,mBAAA,CAAa,WAAA,CAAY,kBAAkB,CAAA;AAElE,IAAA,MAAM,UAAA,GAAaA,mBAAA,CAAa,WAAA,CAAY,UAAU,CAAA;AAEtD,IAAA,OAAO;AAAA,MACL,MAAA;AAAA,MACA,UAAA;AAAA,MACA,cAAA;AAAA,MACA,kBAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF,SAAS,KAAA,EAAO;AACd,IAAA,MAAM,gBAAA,GAAmB,KAAA;AACzB,IAAA,IAAI,iBAAiB,QAAA,EAAU;AAC7B,MAAA,MAAM,QAAA,GAAW,gBAAA,CAAiB,QAAA,CAAS,IAAA,CAAK,MAAM,CAAA;AACtD,MAAA,MAAM,IAAI,KAAA,CAAM,CAAA;;AAAA,EAAA,EAA4C,QAAQ,CAAA,CAAE,CAAA;AAAA,IACxE;AACA,IAAA,MAAM,KAAA;AAAA,EACR;AACF;;;;"}
1
+ {"version":3,"file":"config.cjs.js","sources":["../../src/lib/config.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ConfigSources, loadConfigSchema } from '@backstage/config-loader';\nimport { AppConfig, ConfigReader } from '@backstage/config';\nimport { targetPaths } from '@backstage/cli-common';\n\nimport { getPackages } from '@manypkg/get-packages';\nimport { PackageGraph } from '@backstage/cli-node';\nimport { resolve as resolvePath } from 'node:path';\n\ntype Options = {\n args: string[];\n targetDir?: string;\n fromPackage?: string;\n mockEnv?: boolean;\n withDeprecatedKeys?: boolean;\n fullVisibility?: boolean;\n strict?: boolean;\n};\n\nexport async function loadCliConfig(options: Options) {\n const targetDir = options.targetDir ?? targetPaths.dir;\n\n // Consider all packages in the monorepo when loading in config\n const { packages } = await getPackages(targetDir);\n\n let localPackageNames;\n if (options.fromPackage) {\n if (packages.length) {\n const graph = PackageGraph.fromPackages(packages);\n localPackageNames = Array.from(\n graph.collectPackageNames([options.fromPackage], node => {\n // Workaround for Backstage main repo only, since the CLI has some artificial devDependencies\n if (node.name === '@backstage/cli') {\n return undefined;\n }\n return node.localDependencies.keys();\n }),\n );\n } else {\n // No packages: it means that it's not a monorepo (e.g. standalone plugin)\n localPackageNames = [options.fromPackage];\n }\n } else {\n localPackageNames = packages.map(p => p.packageJson.name);\n }\n\n const schema = await loadConfigSchema({\n dependencies: localPackageNames,\n // Include the package.json in the project root if it exists\n packagePaths: [targetPaths.resolveRoot('package.json')],\n noUndeclaredProperties: options.strict,\n onSchemaError: options.strict\n ? undefined\n : error => console.warn(error.message),\n });\n\n const source = ConfigSources.default({\n allowMissingDefaultConfig: true,\n substitutionFunc: options.mockEnv\n ? async name => process.env[name] || 'x'\n : undefined,\n rootDir: targetPaths.rootDir,\n argv: options.args.flatMap(t => ['--config', resolvePath(targetDir, t)]),\n });\n\n const appConfigs = await new Promise<AppConfig[]>((resolve, reject) => {\n async function readConfig() {\n let loaded = false;\n try {\n const abortController = new AbortController();\n for await (const { configs } of source.readConfigData({\n signal: abortController.signal,\n })) {\n resolve(configs);\n loaded = true;\n abortController.abort();\n }\n } catch (error) {\n if (!loaded) {\n reject(error);\n }\n }\n }\n readConfig();\n });\n\n const configurationLoadedMessage = appConfigs.length\n ? `Loaded config from ${appConfigs.map(c => c.context).join(', ')}`\n : `No configuration files found, running without config`;\n\n // printing to stderr to not clobber stdout in case the cli command\n // outputs structured data (e.g. as config:schema does)\n process.stderr.write(`${configurationLoadedMessage}\\n`);\n\n try {\n const frontendAppConfigs = schema.process(appConfigs, {\n visibility: options.fullVisibility\n ? ['frontend', 'backend', 'secret']\n : ['frontend'],\n withDeprecatedKeys: options.withDeprecatedKeys,\n ignoreSchemaErrors: !options.strict,\n });\n const frontendConfig = ConfigReader.fromConfigs(frontendAppConfigs);\n\n const fullConfig = ConfigReader.fromConfigs(appConfigs);\n\n return {\n schema,\n appConfigs,\n frontendConfig,\n frontendAppConfigs,\n fullConfig,\n };\n } catch (error) {\n const maybeSchemaError = error as Error & { messages?: string[] };\n if (maybeSchemaError.messages) {\n const messages = maybeSchemaError.messages.join('\\n ');\n throw new Error(`Configuration does not match schema\\n\\n ${messages}`);\n }\n throw error;\n }\n}\n"],"names":["targetPaths","getPackages","PackageGraph","loadConfigSchema","ConfigSources","resolvePath","ConfigReader"],"mappings":";;;;;;;;;AAkCA,eAAsB,cAAc,OAAA,EAAkB;AACpD,EAAA,MAAM,SAAA,GAAY,OAAA,CAAQ,SAAA,IAAaA,qBAAA,CAAY,GAAA;AAGnD,EAAA,MAAM,EAAE,QAAA,EAAS,GAAI,MAAMC,wBAAY,SAAS,CAAA;AAEhD,EAAA,IAAI,iBAAA;AACJ,EAAA,IAAI,QAAQ,WAAA,EAAa;AACvB,IAAA,IAAI,SAAS,MAAA,EAAQ;AACnB,MAAA,MAAM,KAAA,GAAQC,oBAAA,CAAa,YAAA,CAAa,QAAQ,CAAA;AAChD,MAAA,iBAAA,GAAoB,KAAA,CAAM,IAAA;AAAA,QACxB,MAAM,mBAAA,CAAoB,CAAC,OAAA,CAAQ,WAAW,GAAG,CAAA,IAAA,KAAQ;AAEvD,UAAA,IAAI,IAAA,CAAK,SAAS,gBAAA,EAAkB;AAClC,YAAA,OAAO,MAAA;AAAA,UACT;AACA,UAAA,OAAO,IAAA,CAAK,kBAA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AAAA,EACF,SAAS,KAAA,EAAO;AACd,IAAA,MAAM,gBAAA,GAAmB,KAAA;AACzB,IAAA,IAAI,iBAAiB,QAAA,EAAU;AAC7B,MAAA,MAAM,QAAA,GAAW,gBAAA,CAAiB,QAAA,CAAS,IAAA,CAAK,MAAM,CAAA;AACtD,MAAA,MAAM,IAAI,KAAA,CAAM,CAAA;;AAAA,EAAA,EAA4C,QAAQ,CAAA,CAAE,CAAA;AAAA,IACxE;AACA,IAAA,MAAM,KAAA;AAAA,EACR;AACF;;"}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var name = "@backstage/cli-module-config";
6
- var version = "0.1.7";
6
+ var version = "0.1.8";
7
7
  var description = "CLI module for Backstage CLI";
8
8
  var backstage = {
9
9
  role: "cli-module"
@@ -1 +1 @@
1
- {"version":3,"file":"package.json.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"package.json.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/cli-module-config",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "CLI module for Backstage CLI",
5
5
  "backstage": {
6
6
  "role": "cli-module"
@@ -33,10 +33,10 @@
33
33
  "test": "backstage-cli package test"
34
34
  },
35
35
  "dependencies": {
36
- "@backstage/cli-common": "^0.3.1",
37
- "@backstage/cli-node": "^0.3.4",
38
- "@backstage/config": "^1.3.9",
39
- "@backstage/config-loader": "^1.11.3",
36
+ "@backstage/cli-common": "^0.3.2",
37
+ "@backstage/cli-node": "^0.3.5",
38
+ "@backstage/config": "^1.3.10",
39
+ "@backstage/config-loader": "^1.11.4",
40
40
  "@backstage/types": "^1.2.2",
41
41
  "@manypkg/get-packages": "^1.1.3",
42
42
  "chalk": "^4.0.0",
@@ -45,7 +45,7 @@
45
45
  "yaml": "^2.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@backstage/cli": "^0.36.6",
48
+ "@backstage/cli": "^0.36.7",
49
49
  "@types/json-schema": "^7.0.6"
50
50
  },
51
51
  "typesVersions": {