Skip to content

RegexCustomization

Defined in: types.ts:88

A regex-scoped customization region — the alternative to a comment-delimited customization block for a format that can’t hold one (JSON) or a single inline token that doesn’t warrant a whole block. path is a glob matched against the resolved relative destination path; pattern (one or more) must each contain exactly one capturing group and match the template’s content — the capturing group only proves the pattern identifies a customizable value, so only the first match per pattern is used, never a global replace. See StandardizeFilesOptions.regexCustomizations.

path: string

Defined in: types.ts:89


pattern: RegExp | RegExp[]

Defined in: types.ts:90