@firestartr/cli 1.53.0-snapshot-10 → 1.53.0-snapshot-12

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.
Files changed (2) hide show
  1. package/build/index.js +7 -3
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -360911,7 +360911,7 @@ let MOCK_FEATURES_FN = undefined;
360911
360911
  function MOCK_FEATURES(mock) {
360912
360912
  MOCK_FEATURES_FN = mock;
360913
360913
  if (mock) {
360914
- log.warn('⚠️ Warning features system dowloader has been mocked, it should only happen in unit testing');
360914
+ log.warn('⚠️ Warning features system downloader has been mocked, it should only happen in unit testing');
360915
360915
  }
360916
360916
  }
360917
360917
  class FeaturesOverrider extends OverriderPatches {
@@ -364078,9 +364078,10 @@ class FeatureRepoChart extends BaseGithubChart {
364078
364078
  org: claim.org,
364079
364079
  repositoryTarget,
364080
364080
  files: claim.files.map((file) => {
364081
+ if (file.targetBranch === '')
364082
+ delete file['targetBranch'];
364081
364083
  return {
364082
364084
  ...file,
364083
- targetBranch: file.targetBranch,
364084
364085
  };
364085
364086
  }),
364086
364087
  firestartr: {
@@ -364098,7 +364099,10 @@ class FeatureRepoChart extends BaseGithubChart {
364098
364099
  ...cr.metadata.annotations,
364099
364100
  ...annotations,
364100
364101
  };
364101
- return cr;
364102
+ // We do this to remove undefined variables from the template
364103
+ const crTemplate = JSON.parse(JSON.stringify(cr, null, 2));
364104
+ console.log(crTemplate.spec);
364105
+ return crTemplate;
364102
364106
  }
364103
364107
  gvk() {
364104
364108
  return FirestartrGithubRepositoryFeature.GVK;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.53.0-snapshot-10",
3
+ "version": "1.53.0-snapshot-12",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",