scriptsFor
scriptsFor(
config,registry?,repo?):Record<string,string>
Defined in: cli/astromech/src/generators/scripts/scripts-for/scripts-for.ts:32
The package.json scripts a manifest asks for, by name: the one rule that sync writes, probe generated check compares against, and the turbo.json generator agrees with (spec ci-flat-task-vocabulary, “Scripts”).
holocron and prepare are not tasks and are added by the caller.
A repo with a generated turbo.json (RepoShape.monorepo) gets root scripts that call turbo:
turbo run <key> for a package-scoped leaf and for each suite (an aggregator task), and, for a repo-scoped leaf with
a local tool, the tool’s own command (prettier --write .), because turbo run <id> would call itself. A leaf with no
local command has no script. The key a leaf has in turbo follows the manifest entry’s spelling.
A single package gets holocron run <words> -- for every task it can run locally; the trailing -- is there because
pnpm appends arguments as typed, and holocron run would otherwise reject a flag meant for the tool. An entry written
with an old dotted name keeps its old script, named as the entry is, and no suite scripts, until the list is
rewritten with flat ids.
Parameters
Section titled “Parameters”config
Section titled “config”TasksConfig
registry?
Section titled “registry?”Record<string, TaskDef> = TASKS
RepoShape = ...
Returns
Section titled “Returns”Record<string, string>