move renaming logic into profiles
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user