@theholocron/cli 3.29.10 → 3.29.11

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.
package/dist/cli.mjs CHANGED
@@ -4422,7 +4422,7 @@ function parseWorkflowsFromTs(source) {
4422
4422
  }
4423
4423
  const withStr = objContent.slice(withOpen, k);
4424
4424
  try {
4425
- const jsonSafe = withStr.replace(/([{,]\s*)([a-zA-Z_$][a-zA-Z0-9_$]*)\s*:/g, "$1\"$2\":");
4425
+ const jsonSafe = withStr.replace(/([{,]\s*)([a-zA-Z_$][a-zA-Z0-9_$]*)\s*:/g, "$1\"$2\":").replace(/,(\s*[}\]])/g, "$1");
4426
4426
  withObj = JSON.parse(jsonSafe);
4427
4427
  } catch {}
4428
4428
  }