mergeScripts
mergeScripts(
existing,desired,turboKeys):MergedScripts
Defined in: cli/astromech/src/generators/scripts/merge-scripts/merge-scripts.ts:18
existing with desired set, key by key; every other script is left alone. turboKeys are the keys the repo’s
turbo.json fans out (#747): for those, and for any script whose desired body is turbo run …, an existing script
that is not itself generated is left untouched. Root may be a directly buildable package with its own real command
(tsc --noEmit, vitest run) for that task, and overwriting it would send turbo into the root script, which calls
turbo again, forever. Every other key is generator-owned: a hand edit of it is drift.
Parameters
Section titled “Parameters”existing
Section titled “existing”Readonly<Record<string, string>>
desired
Section titled “desired”Readonly<Record<string, string>>
turboKeys
Section titled “turboKeys”ReadonlySet<string>