@leverege/build-tools 2.2.9 → 2.2.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.
@@ -35,15 +35,6 @@ function transformGoFormat(input) {
35
35
  return input.replace(/-/g, '_');
36
36
  }
37
37
 
38
- async function createChartYAML(chart) {
39
- try {
40
- await fsp.writeFile('helm/Chart.yaml', yaml.safeDump(chart), 'utf8');
41
- } catch (err) {
42
- console.error('Failed to create Chart.yaml file', chalk.red.bold('ERROR'));
43
- process.exit(1);
44
- }
45
- }
46
-
47
38
  async function createValuesYAML(name, version, redisAccess, securityContext, preemptible, service) {
48
39
  const openPort = service !== 'none';
49
40
  const portFromEnv = process.env.PORT || process.env.SERVER_PORT;
@@ -78,6 +69,15 @@ async function createValuesYAML(name, version, redisAccess, securityContext, pre
78
69
  }
79
70
  }
80
71
 
72
+ async function createChartYAML(chart) {
73
+ try {
74
+ await fsp.writeFile('helm/Chart.yaml', yaml.safeDump(chart), 'utf8');
75
+ } catch (err) {
76
+ console.error('Failed to create Chart.yaml file', chalk.red.bold('ERROR'));
77
+ process.exit(1);
78
+ }
79
+ }
80
+
81
81
  async function createServiceYAML(name, serviceType) {
82
82
  try {
83
83
  await execa('helminit-svc', [name, serviceType]);
@@ -177,7 +177,7 @@ module.exports = {
177
177
  console.log(chalk.green(`\nBootstrapping a new Helm chart for ${name}...\n`));
178
178
  const chart = {
179
179
  name,
180
- version: "1.0.0",
180
+ version: '1.0.0',
181
181
  appVersion
182
182
  };
183
183
  const chartSafeName = transformGoFormat(name);
@@ -190,7 +190,7 @@ module.exports = {
190
190
  process.exit(1);
191
191
  }
192
192
 
193
- await createChartYaml(chart);
193
+ await createChartYAML(chart);
194
194
  const templateOpts = await createTemplates();
195
195
  const {
196
196
  service,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.2.9",
3
+ "version": "2.2.10",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "scripts": {