@theholocron/cli 4.6.0 → 4.8.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.
package/dist/cli.mjs CHANGED
@@ -283,6 +283,7 @@ function resolveConfig(raw) {
283
283
  tasks: raw.tasks,
284
284
  syncScripts: raw.syncScripts,
285
285
  holocronScript: raw.holocronScript,
286
+ extraRequiredChecks: raw.extraRequiredChecks,
286
287
  providers,
287
288
  apps: raw.apps ?? [],
288
289
  doctor: raw.doctor ?? {},
@@ -7065,6 +7066,9 @@ try {
7065
7066
  type: "boolean",
7066
7067
  default: false,
7067
7068
  describe: "Fail (exit 1) if this repo has no such task, instead of skipping."
7069
+ }).option("filter", {
7070
+ type: "string",
7071
+ describe: "turbo --filter=<pkg> passthrough (monorepo)."
7068
7072
  }), async (argv) => {
7069
7073
  const { logger } = buildCliLogger(argv, { command: "run" });
7070
7074
  const config = await loadTasksConfig(argv.cwd).catch(() => void 0);
@@ -7075,9 +7079,29 @@ try {
7075
7079
  }).run(argv.task, {
7076
7080
  passthrough: argv.passthrough ?? [],
7077
7081
  dryRun: argv.dryRun,
7078
- required: argv.required
7082
+ required: argv.required,
7083
+ ...argv.filter ? { filter: argv.filter } : {}
7079
7084
  });
7080
7085
  if (report.status === "fail" || report.status === "unknown") process.exitCode = 1;
7086
+ }).command("ci", "Run the merge-gating checks locally, in CI order — 'will CI pass?'", (y) => y.option("all", {
7087
+ type: "boolean",
7088
+ default: false,
7089
+ describe: "Run every `ci: true` task, not just the required ones."
7090
+ }).option("filter", {
7091
+ type: "string",
7092
+ describe: "turbo --filter=<pkg> passthrough (monorepo)."
7093
+ }), async (argv) => {
7094
+ const { logger } = buildCliLogger(argv, { command: "ci" });
7095
+ const config = await loadTasksConfig(argv.cwd).catch(() => void 0);
7096
+ if (createAstromech({
7097
+ cwd: argv.cwd,
7098
+ logger,
7099
+ config
7100
+ }).ci({
7101
+ dryRun: argv.dryRun,
7102
+ scope: argv.all ? "all" : "required",
7103
+ ...argv.filter ? { filter: argv.filter } : {}
7104
+ }).status === "fail") process.exitCode = 1;
7081
7105
  }).command("sync-github", "Sync workflow templates and composite actions to theholocron/.github", (y) => y.option("repo", {
7082
7106
  type: "string",
7083
7107
  default: "theholocron/.github",