@git.zone/cli 6.0.0 → 6.1.0

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.
@@ -262,7 +262,9 @@ export const packNpmArtifact = async (
262
262
  }
263
263
  let report: unknown;
264
264
  try {
265
- report = JSON.parse(result.stdout.trim());
265
+ const stdout = result.stdout.trim();
266
+ const reportStart = stdout.lastIndexOf("\n{");
267
+ report = JSON.parse(reportStart === -1 ? stdout : stdout.slice(reportStart + 1));
266
268
  } catch (error) {
267
269
  throw new Error("pnpm pack did not return its required JSON report.", {
268
270
  cause: error,