@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 +26 -7
- package/build/packages/cdk8s_renderer/imports/firestartr.dev.d.ts +4 -0
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +4 -0
- package/build/packages/cdk8s_renderer/src/claims/github/component.schema.d.ts +4 -0
- package/build/packages/cdk8s_renderer/src/claims/github/index.d.ts +4 -0
- package/build/packages/cdk8s_renderer/src/claims/github/repository.d.ts +1 -0
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
300855
|
-
|
|
300856
|
-
|
|
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-
|
|
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.
|
|
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.
|