@theholocron/cli 5.0.0-alpha.77 → 5.0.0-alpha.79

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
@@ -5381,7 +5381,7 @@ async function runSetup(input) {
5381
5381
  const rootPkgRaw = await readFile(join(input.context.repoRoot, "package.json"), "utf8").catch(() => null);
5382
5382
  const rootPkg = rootPkgRaw ? JSON.parse(rootPkgRaw) : null;
5383
5383
  const workspaceYaml = await readFile(join(input.context.repoRoot, "pnpm-workspace.yaml"), "utf8").catch(() => "");
5384
- const rootScripts = Object.keys(rootPkg?.scripts ?? {});
5384
+ const rootScripts = rootPkg?.scripts ?? {};
5385
5385
  const workspaceFix = astromechTurbo.ensureRootWorkspaceMember(workspaceYaml, rootScripts);
5386
5386
  if (workspaceFix.changed) steps.push(await runStep("source", "fix pnpm-workspace.yaml (root workspace member, #692)", dryRun, async () => {
5387
5387
  await source.writeRepoFile("pnpm-workspace.yaml", workspaceFix.content);
@@ -6660,7 +6660,7 @@ async function runSync(input) {
6660
6660
  const rootPkgRaw = await readFile(join(input.context.repoRoot, "package.json"), "utf8").catch(() => null);
6661
6661
  const rootPkg = rootPkgRaw ? JSON.parse(rootPkgRaw) : null;
6662
6662
  const workspaceYaml = await readFile(join(input.context.repoRoot, "pnpm-workspace.yaml"), "utf8").catch(() => "");
6663
- const rootScripts = Object.keys(rootPkg?.scripts ?? {});
6663
+ const rootScripts = rootPkg?.scripts ?? {};
6664
6664
  const workspaceFix = astromechTurbo.ensureRootWorkspaceMember(workspaceYaml, rootScripts);
6665
6665
  if (workspaceFix.changed) {
6666
6666
  steps.push(await runSyncStep("local", "fix pnpm-workspace.yaml (root workspace member, #692)", dryRun, async () => {