cispacempt-v2 0.1.4 → 0.1.6

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 +4 -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.1.4",
4
+ "version": "0.1.6",
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
@@ -106,6 +106,9 @@ module.exports = {
106
106
  const convertMsToSec = (ms) => (ms / 1000).toFixed(2);
107
107
 
108
108
  const stages = Object.entries(ciScript.stages).map(([name, data]) => ({ name, ...data }));
109
+ if (typeof repoName !== 'string') {
110
+ repoName = String(typeof repoName === 'function' ? repoName() : repoName);
111
+ }
109
112
  const tempDir = path.join(__dirname, tmp === true ? "tmp/" + repoName : repoName);
110
113
 
111
114
  // Helper to substitute env variables in commands
@@ -117,6 +120,7 @@ module.exports = {
117
120
 
118
121
  // Detect if fileSystem is a directory path string
119
122
  const isFileSystemPath = typeof fileSystem === 'string' && fs.existsSync(fileSystem) && fs.statSync(fileSystem).isDirectory();
123
+ console.log(isFileSystemPath);
120
124
 
121
125
  const stageExecuted = {}; // Track executed stages
122
126