@forge/cli-shared 3.25.2 → 3.26.0-experimental-1c920ad

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,42 @@
1
1
  # @forge/cli-shared
2
2
 
3
+ ## 3.26.0-experimental-1c920ad
4
+
5
+ ### Minor Changes
6
+
7
+ - fa433bf: allow app developer choose location to save the bundled app code
8
+
9
+ ## 3.26.0
10
+
11
+ ### Minor Changes
12
+
13
+ - c43a07c: enable nodejs runtime debugger
14
+ - a0e79f5: app.runtime.name is now a required field in manifest.yml
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [a0e79f5]
19
+ - Updated dependencies [bbd7b7a]
20
+ - @forge/manifest@7.0.0
21
+
22
+ ## 3.26.0-next.1
23
+
24
+ ### Minor Changes
25
+
26
+ - a0e79f5: app.runtime.name is now a required field in manifest.yml
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies [a0e79f5]
31
+ - Updated dependencies [bbd7b7a]
32
+ - @forge/manifest@7.0.0-next.0
33
+
34
+ ## 3.26.0-next.0
35
+
36
+ ### Minor Changes
37
+
38
+ - c43a07c: enable nodejs runtime debugger
39
+
3
40
  ## 3.25.2
4
41
 
5
42
  ### Patch Changes
@@ -16,7 +16,7 @@ class CreateAppCommand {
16
16
  }
17
17
  async execute({ name, description, template, directory }) {
18
18
  await this.templater.downloadAndExtract(template, directory);
19
- const result = await this.registerAppCommand.registerApp({ name, description }, directory, true);
19
+ const result = await this.registerAppCommand.registerApp({ name, description }, directory, true, true);
20
20
  await this.packageInstaller.install(directory);
21
21
  return {
22
22
  analytics: { template, appId: result.id, appName: name },
@@ -28,6 +28,6 @@ export declare class RegisterAppCommand {
28
28
  private readonly logger;
29
29
  constructor(appClient: CreateAppClient, appConfigReader: ConfigSectionReader<AppDetails>, appConfigWriter: ConfigSectionWriter<AppDetails>, logger: Logger);
30
30
  execute(input: CreateAppClientInput, shouldPrependAppName?: boolean): Promise<RegisterAppResult>;
31
- registerApp(input: CreateAppClientInput, directory: string, shouldPrependAppName: boolean): Promise<CreateAppResult>;
31
+ registerApp(input: CreateAppClientInput, directory: string, shouldPrependAppName: boolean, includeRuntime: boolean): Promise<CreateAppResult>;
32
32
  }
33
33
  //# sourceMappingURL=register-app.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"register-app.d.ts","sourceRoot":"","sources":["../../src/apps/register-app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAErE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE;QACZ,GAAG,EAAE,MAAM,CAAC;KACb,EAAE,CAAC;CACL;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CAClE;AAED,oBAAY,iBAAiB,GAAG;IAC9B,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,SAAS,EAAE;QACT,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,qBAAa,kBAAkB;IAE3B,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAHN,SAAS,EAAE,eAAe,EAC1B,eAAe,EAAE,mBAAmB,CAAC,UAAU,CAAC,EAChD,eAAe,EAAE,mBAAmB,CAAC,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C,EAChD,eAAe,EAAE,mBAAmB,CAAC,UAAU,CAAC,EAChD,MAAM,EAAE,MAAM;IAGpB,OAAO,CAAC,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,UAAQ,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAQ9F,WAAW,CACtB,KAAK,EAAE,oBAAoB,EAC3B,SAAS,EAAE,MAAM,EACjB,oBAAoB,EAAE,OAAO,EAC7B,cAAc,EAAE,OAAO,GACtB,OAAO,CAAC,eAAe,CAAC;CAyB5B"}
@@ -11,20 +11,18 @@ class RegisterAppCommand {
11
11
  this.logger = logger;
12
12
  }
13
13
  async execute(input, shouldPrependAppName = false) {
14
- const result = await this.registerApp(input, '.', shouldPrependAppName);
14
+ const result = await this.registerApp(input, '.', shouldPrependAppName, false);
15
15
  return {
16
16
  analytics: { appId: result.id, appName: input.name },
17
17
  environments: result.environments.map((env) => env.key)
18
18
  };
19
19
  }
20
- async registerApp(input, directory, shouldPrependAppName) {
20
+ async registerApp(input, directory, shouldPrependAppName, includeRuntime) {
21
21
  this.logger.info(ui_1.Text.create.taskRegister);
22
22
  const result = await this.appClient.createApp(input);
23
23
  await (0, file_system_1.inDirectory)(directory, async () => {
24
24
  const section = await this.appConfigReader.readConfigSection();
25
- let newAppDetails = {
26
- id: result.id
27
- };
25
+ let newAppDetails = Object.assign({ id: result.id }, (includeRuntime ? { runtime: { name: 'nodejs18.x' } } : {}));
28
26
  if (section !== 'invalid' && section !== 'missing') {
29
27
  newAppDetails = Object.assign(Object.assign({}, section), newAppDetails);
30
28
  }