Fix cleanupDisabledFiles function to use correct variable names
Co-authored-by: AstroSteveo <34114851+AstroSteveo@users.noreply.github.com>
This commit is contained in:
parent
9367292d95
commit
b02893cdee
@ -263,13 +263,13 @@ function cleanupDisabledFiles(outputDir, effectivelyEnabledSets, rootDir) {
|
||||
if (!effectivelyEnabledSets[section.name].has(itemName)) {
|
||||
const filePath = path.join(sectionDir, fileName);
|
||||
fs.unlinkSync(filePath);
|
||||
cleanupSummary[section.name]++;
|
||||
removedCounts[section.name]++;
|
||||
console.log(`🗑️ Removed: ${section.name}/${fileName}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return cleanupSummary;
|
||||
return removedCounts;
|
||||
}
|
||||
|
||||
// CLI usage
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user