cispacempt-v2 0.1.5 → 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 +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.1.5",
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