@firestartr/cli 2.7.0-snapshot-8 → 2.7.0-snapshot-10

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/build/index.js CHANGED
@@ -282041,6 +282041,7 @@ const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createReq
282041
282041
  type: 'object',
282042
282042
  properties: {
282043
282043
  cname: { type: 'string' },
282044
+ buildType: { type: 'string', enum: ['workflow', 'legacy'] },
282044
282045
  source: {
282045
282046
  type: 'object',
282046
282047
  properties: {
@@ -286655,6 +286656,7 @@ function toJson_FirestartrGithubRepositorySpecPages(obj) {
286655
286656
  const result = {
286656
286657
  'cname': obj.cname,
286657
286658
  'source': toJson_FirestartrGithubRepositorySpecPagesSource(obj.source),
286659
+ 'buildType': obj.buildType,
286658
286660
  };
286659
286661
  // filter undefined values
286660
286662
  return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
@@ -286842,6 +286844,17 @@ function toJson_FirestartrGithubRepositorySpecPagesSource(obj) {
286842
286844
  // filter undefined values
286843
286845
  return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
286844
286846
  }
286847
+ /* eslint-enable max-len, @stylistic/max-len, quote-props, @stylistic/quote-props */
286848
+ /**
286849
+ * @schema FirestartrGithubRepositorySpecPagesBuildType
286850
+ */
286851
+ var FirestartrGithubRepositorySpecPagesBuildType;
286852
+ (function (FirestartrGithubRepositorySpecPagesBuildType) {
286853
+ /** workflow */
286854
+ FirestartrGithubRepositorySpecPagesBuildType["WORKFLOW"] = "workflow";
286855
+ /** legacy */
286856
+ FirestartrGithubRepositorySpecPagesBuildType["LEGACY"] = "legacy";
286857
+ })(FirestartrGithubRepositorySpecPagesBuildType || (FirestartrGithubRepositorySpecPagesBuildType = {}));
286845
286858
  /**
286846
286859
  * Converts an object of type 'FirestartrGithubRepositorySpecPermissionsRef' to JSON representation.
286847
286860
  */
@@ -291153,13 +291166,24 @@ class RepoGithubDecanter extends GithubDecanter {
291153
291166
  __decantPages() {
291154
291167
  if (this.data.pages) {
291155
291168
  if (this.data.pages.build_type === 'workflow') {
291156
- importer_src_logger.info(`Repository ${this.data.repoDetails.name} is using GitHub Actions for Pages deployment, skipping Pages configuration in claim as it's managed via workflow.`);
291169
+ this.__patchClaim({
291170
+ op: 'add',
291171
+ path: '/providers/github/pages',
291172
+ value: {
291173
+ buildType: 'workflow',
291174
+ ...(typeof this.data.pages.cname === 'string' &&
291175
+ this.data.pages.cname.length > 0
291176
+ ? { cname: this.data.pages.cname }
291177
+ : {}),
291178
+ },
291179
+ });
291157
291180
  }
291158
291181
  else if (this.data.pages.build_type === 'legacy') {
291159
291182
  this.__patchClaim({
291160
291183
  op: 'add',
291161
291184
  path: '/providers/github/pages',
291162
291185
  value: {
291186
+ buildType: 'legacy',
291163
291187
  ...(typeof this.data.pages.cname === 'string' &&
291164
291188
  this.data.pages.cname.length > 0
291165
291189
  ? { cname: this.data.pages.cname }
@@ -300847,14 +300871,20 @@ class EntityGHRepo extends base_Entity {
300847
300871
  provisionPages() {
300848
300872
  if (this.cr.spec.pages) {
300849
300873
  const source = this.cr.spec.pages.source ?? {};
300874
+ const buildType = this.cr.spec.pages.buildType ?? 'legacy';
300850
300875
  this.patchData({
300851
300876
  path: '/config/pages',
300852
300877
  op: PatchOperations.add,
300853
300878
  value: {
300854
- source: {
300855
- branch: source.branch || this.cr.spec.repo.defaultBranch,
300856
- path: source.path || '/',
300857
- },
300879
+ buildType: buildType,
300880
+ ...(buildType === 'legacy'
300881
+ ? {
300882
+ source: {
300883
+ branch: source.branch || this.cr.spec.repo.defaultBranch,
300884
+ path: source.path || '/',
300885
+ },
300886
+ }
300887
+ : {}),
300858
300888
  cname: this.cr.spec.pages.cname,
300859
300889
  },
300860
300890
  });
@@ -303560,9 +303590,9 @@ const crs_analyzerSubcommand = {
303560
303590
  };
303561
303591
 
303562
303592
  ;// CONCATENATED MODULE: ./package.json
303563
- const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-8"}');
303593
+ const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-10"}');
303564
303594
  ;// CONCATENATED MODULE: ../../package.json
303565
- const package_namespaceObject_1 = {"i8":"2.6.3"};
303595
+ const package_namespaceObject_1 = {"i8":"2.6.4"};
303566
303596
  ;// CONCATENATED MODULE: ./src/subcommands/index.ts
303567
303597
 
303568
303598
 
@@ -1447,6 +1447,10 @@ export interface FirestartrGithubRepositorySpecPages {
1447
1447
  * @schema FirestartrGithubRepositorySpecPages#source
1448
1448
  */
1449
1449
  readonly source?: FirestartrGithubRepositorySpecPagesSource;
1450
+ /**
1451
+ * @schema FirestartrGithubRepositorySpecPages#buildType
1452
+ */
1453
+ readonly buildType?: FirestartrGithubRepositorySpecPagesBuildType;
1450
1454
  }
1451
1455
  /**
1452
1456
  * Converts an object of type 'FirestartrGithubRepositorySpecPages' to JSON representation.
@@ -1680,6 +1684,15 @@ export interface FirestartrGithubRepositorySpecPagesSource {
1680
1684
  * Converts an object of type 'FirestartrGithubRepositorySpecPagesSource' to JSON representation.
1681
1685
  */
1682
1686
  export declare function toJson_FirestartrGithubRepositorySpecPagesSource(obj: FirestartrGithubRepositorySpecPagesSource | undefined): Record<string, any> | undefined;
1687
+ /**
1688
+ * @schema FirestartrGithubRepositorySpecPagesBuildType
1689
+ */
1690
+ export declare enum FirestartrGithubRepositorySpecPagesBuildType {
1691
+ /** workflow */
1692
+ WORKFLOW = "workflow",
1693
+ /** legacy */
1694
+ LEGACY = "legacy"
1695
+ }
1683
1696
  /**
1684
1697
  * @schema FirestartrGithubRepositorySpecPermissionsRef
1685
1698
  */
@@ -735,6 +735,10 @@ declare const schemas: {
735
735
  cname: {
736
736
  type: string;
737
737
  };
738
+ buildType: {
739
+ type: string;
740
+ enum: string[];
741
+ };
738
742
  source: {
739
743
  type: string;
740
744
  properties: {
@@ -139,6 +139,10 @@ declare const _default: {
139
139
  cname: {
140
140
  type: string;
141
141
  };
142
+ buildType: {
143
+ type: string;
144
+ enum: string[];
145
+ };
142
146
  source: {
143
147
  type: string;
144
148
  properties: {
@@ -266,6 +266,10 @@ export declare const GithubSchemas: ({
266
266
  cname: {
267
267
  type: string;
268
268
  };
269
+ buildType: {
270
+ type: string;
271
+ enum: string[];
272
+ };
269
273
  source: {
270
274
  type: string;
271
275
  properties: {
@@ -1,5 +1,5 @@
1
1
  import { BranchStrategy } from 'catalog_common';
2
- import { FirestartrGithubRepositorySpecRepoVisibility } from '../../../imports/firestartr.dev';
2
+ import { FirestartrGithubRepositorySpecPagesBuildType, FirestartrGithubRepositorySpecRepoVisibility } from '../../../imports/firestartr.dev';
3
3
  import { IClaimInstalledFeature } from '../base';
4
4
  import { IComponentClaim } from '../base/component';
5
5
  export interface IGithubRepositoryClaim extends IComponentClaim {
@@ -49,11 +49,12 @@ interface IComponentClaimActions {
49
49
  };
50
50
  }
51
51
  interface IRepositoryPage {
52
- cname: string;
53
- source: {
52
+ cname?: string;
53
+ source?: {
54
54
  branch: string;
55
55
  path: string;
56
56
  };
57
+ buildType?: FirestartrGithubRepositorySpecPagesBuildType;
57
58
  }
58
59
  interface IComponentClaimLabel {
59
60
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "2.7.0-snapshot-8",
3
+ "version": "2.7.0-snapshot-10",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",