@forge/cli-shared 6.7.0-next.9-experimental-4c15b3a → 6.7.1-next.0

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,6 +1,12 @@
1
1
  # @forge/cli-shared
2
2
 
3
- ## 6.7.0-next.9-experimental-4c15b3a
3
+ ## 6.7.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 999a9d0: Update error messages for deployment
8
+
9
+ ## 6.7.0
4
10
 
5
11
  ### Minor Changes
6
12
 
@@ -9,7 +15,8 @@
9
15
  ### Patch Changes
10
16
 
11
17
  - 70cd30c: Updated RoA web trigger module warning to be more generic
12
- - dbc077f: Added config file utility method to only read appId and refactored commands to perform validation after command configuration
18
+ - 4879128: Revert Changes: Added config file utility method to only read appId and refactored commands to perform validation after command configuration
19
+ - cf5bc5c: Improve XPA error messages
13
20
  - 272d770: Remove LaunchDarkly integration completely
14
21
  - 78a006f: Fixed handling of product and site params without any value
15
22
  - 30f197e: Refactoring to enable alternate bundler support
@@ -20,7 +27,21 @@
20
27
  - Updated dependencies [34db0f6]
21
28
  - Updated dependencies [01ca857]
22
29
  - Updated dependencies [70badb7]
23
- - @forge/manifest@8.8.0-next.4-experimental-4c15b3a
30
+ - @forge/manifest@8.8.0
31
+
32
+ ## 6.7.0-next.11
33
+
34
+ ### Patch Changes
35
+
36
+ - 4879128: Revert Changes: Added config file utility method to only read appId and refactored commands to perform validation after command configuration
37
+
38
+ ## 6.7.0-next.10
39
+
40
+ ### Patch Changes
41
+
42
+ - cf5bc5c: Improve XPA error messages
43
+ - Updated dependencies [4c15b3a]
44
+ - @forge/manifest@8.8.0-next.5
24
45
 
25
46
  ## 6.7.0-next.9
26
47
 
@@ -9,5 +9,5 @@ export declare type AppConfigProvider = () => Promise<AppDetails>;
9
9
  export declare function adjustLegacyAppId(legacyAppDetails: AppDetails): {
10
10
  id: string;
11
11
  };
12
- export declare const assertiveConfigAppIdProvider: (appConfigReader: ConfigSectionReader<AppDetails>) => AppConfigProvider;
12
+ export declare const assertiveAppConfigProvider: (appConfigReader: ConfigSectionReader<AppDetails>) => AppConfigProvider;
13
13
  //# sourceMappingURL=app-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-config.d.ts","sourceRoot":"","sources":["../../src/apps/app-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,OAAO,EAAa,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAE3D,eAAO,MAAM,cAAc;;EAEzB,CAAC;AAEH,oBAAY,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AACzD,eAAO,MAAM,YAAY,QAAQ,CAAC;AAElC,oBAAY,iBAAiB,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;AAE1D,wBAAgB,iBAAiB,CAAC,gBAAgB,EAAE,UAAU;;EAQ7D;AAED,eAAO,MAAM,4BAA4B,oBACrB,oBAAoB,UAAU,CAAC,KAAG,iBAEyB,CAAC"}
1
+ {"version":3,"file":"app-config.d.ts","sourceRoot":"","sources":["../../src/apps/app-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,OAAO,EAAa,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAG3D,eAAO,MAAM,cAAc;;EAEzB,CAAC;AAEH,oBAAY,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AACzD,eAAO,MAAM,YAAY,QAAQ,CAAC;AAElC,oBAAY,iBAAiB,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;AAE1D,wBAAgB,iBAAiB,CAAC,gBAAgB,EAAE,UAAU;;EAQ7D;AAED,eAAO,MAAM,0BAA0B,oBACnB,oBAAoB,UAAU,CAAC,KAAG,iBAIxB,CAAC"}
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.assertiveConfigAppIdProvider = exports.adjustLegacyAppId = exports.appConfigKey = exports.appConfigShape = void 0;
3
+ exports.assertiveAppConfigProvider = exports.adjustLegacyAppId = exports.appConfigKey = exports.appConfigShape = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const t = tslib_1.__importStar(require("io-ts"));
6
6
  const ari_1 = require("../ari");
7
7
  const config_1 = require("../config");
8
+ const ui_1 = require("../ui");
8
9
  exports.appConfigShape = t.type({
9
10
  id: t.string
10
11
  });
@@ -19,5 +20,7 @@ function adjustLegacyAppId(legacyAppDetails) {
19
20
  };
20
21
  }
21
22
  exports.adjustLegacyAppId = adjustLegacyAppId;
22
- const assertiveConfigAppIdProvider = (appConfigReader) => () => (0, config_1.assertive)(appConfigReader).readConfigAppIdOrThrow().then(adjustLegacyAppId);
23
- exports.assertiveConfigAppIdProvider = assertiveConfigAppIdProvider;
23
+ const assertiveAppConfigProvider = (appConfigReader) => () => (0, config_1.assertive)(appConfigReader)
24
+ .readConfigSectionOrThrow(ui_1.Text.config.missing, ui_1.Text.config.invalid)
25
+ .then(adjustLegacyAppId);
26
+ exports.assertiveAppConfigProvider = assertiveAppConfigProvider;
@@ -1,5 +1,4 @@
1
1
  import * as t from 'io-ts';
2
- import { EcosystemAppAri } from '@forge/util/packages/ari';
3
2
  import { ConfigReader } from './config';
4
3
  import { Codec, CodecType, InnerType } from './config-codec-types';
5
4
  import { ConfigSectionReader } from './config-section';
@@ -9,7 +8,6 @@ export declare class ConfigFileSectionReader {
9
8
  private readonly configReader;
10
9
  constructor(configReader: ConfigReader);
11
10
  readConfigSection<K extends string, V extends Codec>(key: K, schema: CodecType<V>): Promise<InnerType<V> | 'missing' | 'invalid'>;
12
- readAppId(): Promise<EcosystemAppAri>;
13
11
  }
14
12
  export declare const configFileReaderForSection: <K extends string, P extends Codec>(key: K, schema: CodecType<P>, configReader: ConfigReader) => ConfigSectionReader<InnerType<P>>;
15
13
  //# sourceMappingURL=config-file-section-reader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-file-section-reader.d.ts","sourceRoot":"","sources":["../../src/config/config-file-section-reader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,eAAO,MAAM,aAAa,aAAa,CAAC;AACxC,oBAAY,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;AAEhE,qBAAa,uBAAuB;IACtB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,YAAY;IAE1C,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,KAAK,EAC9D,GAAG,EAAE,CAAC,EACN,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,GACnB,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,SAAS,CAAC;IAYnC,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;CAGnD;AAkBD,eAAO,MAAM,0BAA0B,kFAGvB,YAAY,sCAG3B,CAAC"}
1
+ {"version":3,"file":"config-file-section-reader.d.ts","sourceRoot":"","sources":["../../src/config/config-file-section-reader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,eAAO,MAAM,aAAa,aAAa,CAAC;AACxC,oBAAY,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;AAEhE,qBAAa,uBAAuB;IACtB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,YAAY;IAE1C,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,KAAK,EAC9D,GAAG,EAAE,CAAC,EACN,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,GACnB,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,SAAS,CAAC;CAWjD;AAcD,eAAO,MAAM,0BAA0B,kFAGvB,YAAY,sCAG3B,CAAC"}
@@ -22,9 +22,6 @@ class ConfigFileSectionReader {
22
22
  return 'missing';
23
23
  }
24
24
  }
25
- async readAppId() {
26
- return await this.configReader.readAppId();
27
- }
28
25
  }
29
26
  exports.ConfigFileSectionReader = ConfigFileSectionReader;
30
27
  class ShapedConfigFileSectionReader {
@@ -39,9 +36,6 @@ class ShapedConfigFileSectionReader {
39
36
  readConfigSection() {
40
37
  return this.configSectionReader.readConfigSection(this.key, this.schema);
41
38
  }
42
- readAppId() {
43
- return this.configSectionReader.readAppId();
44
- }
45
39
  }
46
40
  const configFileReaderForSection = (key, schema, configReader) => {
47
41
  return new ShapedConfigFileSectionReader(new ConfigFileSectionReader(configReader), key, schema);
@@ -3,16 +3,12 @@ import { ConfigReader, ConfigWriter } from './';
3
3
  import { Modules, ManifestSchema, Resources } from '@forge/manifest';
4
4
  import { UserError, ValidationError } from '../shared';
5
5
  import { RuntimeType } from '../runtimes';
6
- import { EcosystemAppAri } from '@forge/util/packages/ari';
7
6
  export declare class InvalidManifestError extends ValidationError {
8
7
  constructor();
9
8
  }
10
9
  export declare class ResourceDefinitionMissingError extends UserError {
11
10
  constructor(resources: string[]);
12
11
  }
13
- export declare class InvalidConfigAppId extends UserError {
14
- constructor(appId: string);
15
- }
16
12
  export interface Handler {
17
13
  module: string;
18
14
  func: string;
@@ -32,7 +28,6 @@ export declare class ConfigFile implements ConfigReader, ConfigWriter, ConfigInt
32
28
  private readonly fileWriter;
33
29
  private readonly manifestParser;
34
30
  constructor(fileReader: FileSystemReader, fileWriter: FileSystemWriter);
35
- readAppId(): Promise<EcosystemAppAri>;
36
31
  getAppHandlers(): Promise<Array<Handler>>;
37
32
  readConfig(): Promise<ManifestSchema>;
38
33
  snapshotsEnabled(): Promise<boolean>;
@@ -57,9 +52,4 @@ export declare class ConfigFile implements ConfigReader, ConfigWriter, ConfigInt
57
52
  getConnectKey(): Promise<string | undefined>;
58
53
  private getResourceType;
59
54
  }
60
- export declare class RawConfigFile extends ConfigFile {
61
- private rawFileReader;
62
- constructor(fileReader: FileSystemReader, fileWriter: FileSystemWriter);
63
- readConfig(): Promise<ManifestSchema>;
64
- }
65
55
  //# sourceMappingURL=config-file.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-file.d.ts","sourceRoot":"","sources":["../../src/config/config-file.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGpE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAoB,MAAM,IAAI,CAAC;AAGlE,OAAO,EACL,OAAO,EACP,cAAc,EACd,SAAS,EAMV,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,SAAS,EAAE,eAAe,EAAQ,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAkB,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,qBAAa,oBAAqB,SAAQ,eAAe;;CAIxD;AAED,qBAAa,8BAA+B,SAAQ,SAAS;gBAC/C,SAAS,EAAE,MAAM,EAAE;CAGhC;AAED,qBAAa,kBAAmB,SAAQ,SAAS;gBACnC,KAAK,EAAE,MAAM;CAG1B;AAED,MAAM,WAAW,OAAO;IACtB,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;IAgBhC,OAAO,CAAC,6BAA6B;IAarC,OAAO,CAAC,gBAAgB;IAIX,oBAAoB,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;KAAE,EAAE,CAAC;IAoClF,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAe1E,YAAY,CAAC,aAAa,CAAC,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAsB1E,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAKzD,OAAO,CAAC,eAAe;CA0BxB"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RawConfigFile = exports.ConfigFile = exports.findUIKit1Modules = exports.InvalidConfigAppId = exports.ResourceDefinitionMissingError = exports.InvalidManifestError = void 0;
3
+ exports.ConfigFile = exports.findUIKit1Modules = exports.ResourceDefinitionMissingError = exports.InvalidManifestError = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const yaml_1 = require("yaml");
6
6
  const ui_1 = require("../ui");
@@ -11,7 +11,6 @@ const manifest_1 = require("@forge/manifest");
11
11
  const url_1 = require("url");
12
12
  const shared_1 = require("../shared");
13
13
  const runtimes_1 = require("../runtimes");
14
- const ari_1 = require("@forge/util/packages/ari");
15
14
  class InvalidManifestError extends shared_1.ValidationError {
16
15
  constructor() {
17
16
  super(ui_1.Text.artifact.error.invalidYaml(_1.manifestFileName));
@@ -24,12 +23,6 @@ class ResourceDefinitionMissingError extends shared_1.UserError {
24
23
  }
25
24
  }
26
25
  exports.ResourceDefinitionMissingError = ResourceDefinitionMissingError;
27
- class InvalidConfigAppId extends shared_1.UserError {
28
- constructor(appId) {
29
- super(ui_1.Text.config.appId.invalid(appId));
30
- }
31
- }
32
- exports.InvalidConfigAppId = InvalidConfigAppId;
33
26
  const isUIKit1 = (module) => {
34
27
  return (typeof module === 'object' &&
35
28
  module !== null &&
@@ -107,15 +100,6 @@ class ConfigFile {
107
100
  this.fileWriter = fileWriter;
108
101
  this.manifestParser = new manifest_1.ManifestParserBuilder().withInterpolators().build();
109
102
  }
110
- async readAppId() {
111
- const manifestFileContents = await this.readConfig();
112
- try {
113
- return ari_1.EcosystemAppAri.parse(manifestFileContents.app?.id);
114
- }
115
- catch {
116
- throw new InvalidConfigAppId(manifestFileContents.app?.id);
117
- }
118
- }
119
103
  async getAppHandlers() {
120
104
  const config = await this.readConfig();
121
105
  const functions = config.modules?.function ?? [];
@@ -302,15 +286,3 @@ class ConfigFile {
302
286
  }
303
287
  }
304
288
  exports.ConfigFile = ConfigFile;
305
- class RawConfigFile extends ConfigFile {
306
- rawFileReader;
307
- constructor(fileReader, fileWriter) {
308
- super(fileReader, fileWriter);
309
- this.rawFileReader = fileReader;
310
- }
311
- async readConfig() {
312
- const manifest = this.rawFileReader.readFile(_1.manifestFileName);
313
- return (0, yaml_1.parse)(manifest);
314
- }
315
- }
316
- exports.RawConfigFile = RawConfigFile;
@@ -1,8 +1,5 @@
1
- import { EcosystemAppAri } from '@forge/util/packages/ari';
2
- import { AppDetails } from '../index';
3
1
  export interface ConfigSectionReader<V extends object> {
4
2
  readConfigSection(): Promise<V | 'missing' | 'invalid'>;
5
- readAppId(): Promise<EcosystemAppAri>;
6
3
  }
7
4
  export interface ConfigSectionWriter<V extends object> {
8
5
  writeConfigSection(configSection: V): Promise<void>;
@@ -16,7 +13,6 @@ export declare class AssertiveConfigSectionReader<V extends object> {
16
13
  private readonly configSectionReader;
17
14
  constructor(configSectionReader: ConfigSectionReader<V>);
18
15
  readConfigSectionOrThrow(missingMessage: string, invalidMessage: string): Promise<V>;
19
- readConfigAppIdOrThrow(): Promise<AppDetails>;
20
16
  }
21
17
  export declare const assertive: <V extends object>(configSectionReader: ConfigSectionReader<V>) => AssertiveConfigSectionReader<V>;
22
18
  //# sourceMappingURL=config-section.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-section.d.ts","sourceRoot":"","sources":["../../src/config/config-section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,MAAM;IACnD,iBAAiB,IAAI,OAAO,CAAC,CAAC,GAAG,SAAS,GAAG,SAAS,CAAC,CAAC;IACxD,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,MAAM;IACnD,kBAAkB,CAAC,aAAa,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD;AAED,qBAAa,yBAA0B,SAAQ,KAAK;CAAG;AACvD,qBAAa,0BAA2B,SAAQ,KAAK;CAAG;AAExD,qBAAa,4BAA4B,CAAC,CAAC,SAAS,MAAM;IAC5C,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAAnB,mBAAmB,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAE3D,wBAAwB,CAAC,cAAc,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAWpF,sBAAsB,IAAI,OAAO,CAAC,UAAU,CAAC;CAM3D;AAED,eAAO,MAAM,SAAS,oGAEwE,CAAC"}
1
+ {"version":3,"file":"config-section.d.ts","sourceRoot":"","sources":["../../src/config/config-section.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,MAAM;IACnD,iBAAiB,IAAI,OAAO,CAAC,CAAC,GAAG,SAAS,GAAG,SAAS,CAAC,CAAC;CACzD;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,MAAM;IACnD,kBAAkB,CAAC,aAAa,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD;AAED,qBAAa,yBAA0B,SAAQ,KAAK;CAAG;AACvD,qBAAa,0BAA2B,SAAQ,KAAK;CAAG;AAExD,qBAAa,4BAA4B,CAAC,CAAC,SAAS,MAAM;IAC5C,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAAnB,mBAAmB,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAE3D,wBAAwB,CAAC,cAAc,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;CAUlG;AAED,eAAO,MAAM,SAAS,oGAEwE,CAAC"}
@@ -24,12 +24,6 @@ class AssertiveConfigSectionReader {
24
24
  return configValue;
25
25
  }
26
26
  }
27
- async readConfigAppIdOrThrow() {
28
- const appId = await this.configSectionReader.readAppId();
29
- return {
30
- id: appId.toString()
31
- };
32
- }
33
27
  }
34
28
  exports.AssertiveConfigSectionReader = AssertiveConfigSectionReader;
35
29
  const assertive = (configSectionReader) => new AssertiveConfigSectionReader(configSectionReader);
@@ -1,5 +1,4 @@
1
1
  import { ManifestSchema, Resources } from '@forge/manifest';
2
- import { EcosystemAppAri } from '@forge/util/packages/ari';
3
2
  export declare const manifestFileName = "manifest.yml";
4
3
  export declare const dependencyFileNames: string[];
5
4
  export declare const ModuleEntryPoints: readonly ["view", "edit", "create", "contextConfig", "config", "target"];
@@ -15,12 +14,9 @@ export declare type HostedResourcesModule = BaseModule & {
15
14
  } & {
16
15
  [entryPoint in ModuleEntryPoint]?: HostedResourcesModule;
17
16
  };
18
- export interface ConfigReader extends ConfigAppIdReader {
17
+ export interface ConfigReader {
19
18
  readConfig(): Promise<ManifestSchema>;
20
19
  }
21
- export interface ConfigAppIdReader {
22
- readAppId(): Promise<EcosystemAppAri>;
23
- }
24
20
  export interface ConfigWriter {
25
21
  writeToConfigFile<K extends string, V extends object>(configKey: K, config: V): Promise<void>;
26
22
  prependAppNameToModules(name: string): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAC/C,eAAO,MAAM,mBAAmB,UAAqD,CAAC;AAEtF,eAAO,MAAM,iBAAiB,0EAA2E,CAAC;AAC1G,oBAAY,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,oBAAY,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC;CACb,GAAG;KACD,UAAU,IAAI,gBAAgB,CAAC,CAAC,EAAE,UAAU;CAC9C,CAAC;AAEF,oBAAY,qBAAqB,GAAG,UAAU,GAAG;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC/B,GAAG;KACD,UAAU,IAAI,gBAAgB,CAAC,CAAC,EAAE,qBAAqB;CACzD,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,iBAAiB;IACrD,UAAU,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,YAAY;IAC3B,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,C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