Skip to content

createPrePush

createPrePush(holocronScript?): string

Defined in: cli/astromech/src/templates/configs/pre-push/create-config.ts:20

.husky/pre-push — runs holocron run ci (the merge-gating checks, in CI order) before every push. Installed by holocron setup when hooks are enabled (default for protection: "strict"). git push --no-verify bypasses it.

A script that runs a built file (node cli/cli/dist/cli.mjs) gets a check first: in a fresh clone or linked worktree the build does not exist yet, and without it the push dies with a module-not-found stack trace instead of saying what to do (#1104).

string = "pnpm exec holocron"

the command that invokes the CLI. Defaults to pnpm exec holocron; the source repo passes node cli/cli/dist/cli.mjs.

string