cispacempt-v2 0.0.4 → 0.0.5

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/package.json +1 -1
  2. package/src/index.js +3 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "main": "src/index.js",
3
3
  "name": "cispacempt-v2",
4
- "version": "0.0.4",
4
+ "version": "0.0.5",
5
5
  "description": "Fast CI engine for CodespaceMPT with script stages and file system hooks",
6
6
  "author": "argentidev",
7
7
  "license": "MIT",
package/src/index.js CHANGED
@@ -90,6 +90,7 @@ module.exports = {
90
90
 
91
91
  parse: async function (ciScript, repoName, fileSystem, tmp = true) {
92
92
  let errorIn = [];
93
+ let successIn = [];
93
94
  let finalResult = [];
94
95
  let timeTaken;
95
96
  let combinedExitCode = 0;
@@ -176,6 +177,7 @@ module.exports = {
176
177
  !errorIn.includes(stage.name) ? errorIn.push(stage.name) : null;
177
178
  } else {
178
179
  output += `${result.stdout ? result.stdout : ''}\n`;
180
+ !successIn.includes(stage.name) ? successIn.push(stage.name) : null;
179
181
  }
180
182
 
181
183
  if (result.exitCode !== 0) {
@@ -206,6 +208,7 @@ module.exports = {
206
208
  arch: os.arch(),
207
209
  },
208
210
  errorIn: errorIn.length > 0 ? errorIn : null,
211
+ successIn: successIn.length > 0 ? successIn : null,
209
212
  };
210
213
 
211
214
  cleanUpAndRespond(tempDir);