Pass privatePackage for templating

Signed-off-by: Min Kim <minkimcello@gmail.com>
This commit is contained in:
Min Kim
2024-12-17 18:42:15 -05:00
parent 98bbe025c9
commit 3f2dadc8a5
3 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -5,12 +5,13 @@
"cli": {
"defaults": true,
"globals": {
"scope": "backstage",
"private": false
},
"templates": [
{
"id": "local backend module example",
"target": "./example-cli-template.yaml"
"id": "example cli template",
"target": "./example.yaml"
}
]
}
+1
View File
@@ -99,6 +99,7 @@ export default async () => {
templateDir: template.templatePath,
values: {
name: packageName,
privatePackage: options.private,
pluginVersion: options.baseVersion,
moduleVar,
extensionName,
+1 -1
View File
@@ -202,7 +202,7 @@ export async function populateOptions(
): Promise<Options> {
return {
id: prompts.id ?? '',
private: false,
private: !!prompts.private,
baseVersion: await calculateBaseVersion(prompts.baseVersion),
owner: prompts.owner ?? '',
license: prompts.license ?? 'Apache-2.0',