@forge/cli-shared
6.7.1-next.2-experimental-611b3666.8.0-next.3
out/apps/register-app.jsout/apps/register-app.js+3−2
Index: package/out/apps/register-app.js
===================================================================
--- package/out/apps/register-app.js
+++ package/out/apps/register-app.js
@@ -23,9 +23,9 @@
analytics: { appId: result.id, appName: input.name },
environments: result.environments.map((env) => env.key)
};
}
- async registerApp(input, directory, { shouldPrependAppName }) {
+ async registerApp(input, directory, { shouldPrependAppName, requiredProduct }) {
this.logger.info(ui_1.Text.create.taskRegister);
const result = await this.appClient.createApp(input);
await (0, file_system_1.inDirectory)(directory, async () => {
const { modules } = await this.configFile.readConfig();
@@ -36,9 +36,10 @@
}
}
const section = await this.appConfigReader.readConfigSection();
let newAppDetails = {
- id: result.id
+ id: result.id,
+ ...(requiredProduct && { requiredProduct })
};
if (section !== 'invalid' && section !== 'missing') {
newAppDetails = {
...section,