Pass privatePackage for templating
Signed-off-by: Min Kim <minkimcello@gmail.com>
This commit is contained in:
+3
-2
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -99,6 +99,7 @@ export default async () => {
|
||||
templateDir: template.templatePath,
|
||||
values: {
|
||||
name: packageName,
|
||||
privatePackage: options.private,
|
||||
pluginVersion: options.baseVersion,
|
||||
moduleVar,
|
||||
extensionName,
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user