move renaming logic into profiles

This commit is contained in:
Joe Danziger
2025-05-11 15:38:29 -04:00
parent f8040eccc8
commit 06d7750886
4 changed files with 37 additions and 15 deletions

View File

@@ -221,11 +221,19 @@ function onPostConvertBrandRules(targetDir) {
onAddBrandRules(targetDir);
}
function getTargetRuleFilename(sourceFilename) {
if (fileMap[sourceFilename]) {
return fileMap[sourceFilename];
}
return sourceFilename.replace(/\.mdc$/, '.md');
}
export {
conversionConfig,
fileMap,
globalReplacements,
brandName,
rulesDir,
getTargetRuleFilename,
onPostConvertBrandRules
};