cispacempt-v2 0.0.3 → 0.0.4

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 -2
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.3",
4
+ "version": "0.0.4",
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
@@ -89,8 +89,7 @@ const path = require("path"),
89
89
  module.exports = {
90
90
 
91
91
  parse: async function (ciScript, repoName, fileSystem, tmp = true) {
92
- const isLinux = os.platform() === "linux";
93
- const isRoot = process.getuid && process.getuid() === 0;
92
+ let errorIn = [];
94
93
  let finalResult = [];
95
94
  let timeTaken;
96
95
  let combinedExitCode = 0;
@@ -174,6 +173,7 @@ module.exports = {
174
173
  if (result.error) {
175
174
  output += `Error: ${result.error}\n`;
176
175
  output += `${result.stderr ? result.stderr : ''}\n`;
176
+ !errorIn.includes(stage.name) ? errorIn.push(stage.name) : null;
177
177
  } else {
178
178
  output += `${result.stdout ? result.stdout : ''}\n`;
179
179
  }
@@ -205,6 +205,7 @@ module.exports = {
205
205
  version: os.release(),
206
206
  arch: os.arch(),
207
207
  },
208
+ errorIn: errorIn.length > 0 ? errorIn : null,
208
209
  };
209
210
 
210
211
  cleanUpAndRespond(tempDir);