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

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] }), {});
@@ -291153,13 +291155,24 @@ class RepoGithubDecanter extends GithubDecanter {
291153
291155
  __decantPages() {
291154
291156
  if (this.data.pages) {
291155
291157
  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.`);
291158
+ this.__patchClaim({
291159
+ op: 'add',
291160
+ path: '/providers/github/pages',
291161
+ value: {
291162
+ buildType: 'workflow',
291163
+ ...(typeof this.data.pages.cname === 'string' &&
291164
+ this.data.pages.cname.length > 0
291165
+ ? { cname: this.data.pages.cname }
291166
+ : {}),
291167
+ },
291168
+ });
291157
291169
  }
291158
291170
  else if (this.data.pages.build_type === 'legacy') {
291159
291171
  this.__patchClaim({
291160
291172
  op: 'add',
291161
291173
  path: '/providers/github/pages',
291162
291174
  value: {
291175
+ buildType: 'legacy',
291163
291176
  ...(typeof this.data.pages.cname === 'string' &&
291164
291177
  this.data.pages.cname.length > 0
291165
291178
  ? { cname: this.data.pages.cname }
@@ -300847,14 +300860,20 @@ class EntityGHRepo extends base_Entity {
300847
300860
  provisionPages() {
300848
300861
  if (this.cr.spec.pages) {
300849
300862
  const source = this.cr.spec.pages.source ?? {};
300863
+ const buildType = this.cr.spec.pages.buildType || 'legacy';
300850
300864
  this.patchData({
300851
300865
  path: '/config/pages',
300852
300866
  op: PatchOperations.add,
300853
300867
  value: {
300854
- source: {
300855
- branch: source.branch || this.cr.spec.repo.defaultBranch,
300856
- path: source.path || '/',
300857
- },
300868
+ buildType: buildType,
300869
+ ...(buildType === 'legacy'
300870
+ ? {
300871
+ source: {
300872
+ branch: source.branch || this.cr.spec.repo.defaultBranch,
300873
+ path: source.path || '/',
300874
+ },
300875
+ }
300876
+ : {}),
300858
300877
  cname: this.cr.spec.pages.cname,
300859
300878
  },
300860
300879
  });
@@ -303560,9 +303579,9 @@ const crs_analyzerSubcommand = {
303560
303579
  };
303561
303580
 
303562
303581
  ;// CONCATENATED MODULE: ./package.json
303563
- const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-8"}');
303582
+ const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-9"}');
303564
303583
  ;// CONCATENATED MODULE: ../../package.json
303565
- const package_namespaceObject_1 = {"i8":"2.6.3"};
303584
+ const package_namespaceObject_1 = {"i8":"2.6.4"};
303566
303585
  ;// CONCATENATED MODULE: ./src/subcommands/index.ts
303567
303586
 
303568
303587
 
@@ -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?: string;
1450
1454
  }
1451
1455
  /**
1452
1456
  * Converts an object of type 'FirestartrGithubRepositorySpecPages' to JSON representation.
@@ -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: {
@@ -54,6 +54,7 @@ interface IRepositoryPage {
54
54
  branch: string;
55
55
  path: string;
56
56
  };
57
+ buildType?: string;
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-9",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",