contensis-cli 1.0.0-beta.95 → 1.0.0-beta.96

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.
@@ -25,6 +25,8 @@ import { normaliseLineEndings, winSlash } from '~/util/os';
25
25
  import { stringifyYaml } from '~/util/yaml';
26
26
 
27
27
  class ContensisDev extends ContensisRole {
28
+ git!: GitHelper;
29
+
28
30
  constructor(
29
31
  args: string[],
30
32
  outputOpts?: OutputOptionsConstructorArg,
@@ -52,7 +54,7 @@ class ContensisDev extends ContensisRole {
52
54
  );
53
55
 
54
56
  // Retrieve git info
55
- const git = new GitHelper(projectHome);
57
+ const git = this.git = new GitHelper(projectHome);
56
58
 
57
59
  // Retrieve ci workflow info
58
60
  const workflowFiles = git.workflows;
@@ -117,7 +119,7 @@ class ContensisDev extends ContensisRole {
117
119
  log.raw(log.infoText(messages.devinit.ciDetails(ciFileName)));
118
120
 
119
121
  // Look at the workflow file content and make updates
120
- const mappedWorkflow = await mapCIWorkflowContent(this, git);
122
+ const mappedWorkflow = await mapCIWorkflowContent(this);
121
123
 
122
124
  log.help(messages.devinit.ciIntro(git));
123
125
 
package/src/util/diff.ts CHANGED
@@ -47,7 +47,10 @@ export const diffFileContent = (
47
47
  const colour = part.added ? 'green' : part.removed ? 'red' : 'grey';
48
48
 
49
49
  if (part.value !== '\n') {
50
- if (needsNewLine) output.push('\n### --');
50
+ if (needsNewLine) {
51
+ output.push('\n### --');
52
+ needsNewLine = false;
53
+ }
51
54
  output.push(
52
55
  `\n${part.value
53
56
  .split('\n')
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const LIB_VERSION = "1.0.0-beta.95";
1
+ export const LIB_VERSION = "1.0.0-beta.96";