buildTemplates
Copies all template files from the templates folder to the templates folder within the distribution folder.
This function recursively reads the contents of the templates folder and copies each file to the corresponding path under ObsidianDevUtilsRepoPaths.DistTemplates, so consumers can copy the templates from node_modules/obsidian-dev-utils/dist/templates. A trailing .template on a source file name is stripped in the destination (e.g. eslint.config.mts.template is copied as eslint.config.mts), so an active config template can live in the repo under a name that the corresponding tool does not auto-discover.
Import:
import { buildTemplates } from 'obsidian-dev-utils/script-utils/build';Signature:
function buildTemplates(): Promise<void>Returns: Promise<void> — A Promise that resolves when all files have been copied.