revert: remove unused script modifications

This commit is contained in:
DragonnZhang 2026-02-10 14:34:36 +08:00
parent e29aab478e
commit 2a432b18f7
3 changed files with 43 additions and 47 deletions

View file

@ -49,10 +49,7 @@ function copyFilesRecursive(source, target, rootSourceDir) {
const normalizedPath = relativePath.replace(/\\/g, '/');
const isLocaleJs =
ext === '.js' && normalizedPath.startsWith('i18n/locales/');
const isInsightTemplate = normalizedPath.startsWith(
'services/insight/templates/',
);
if (extensionsToCopy.includes(ext) || isLocaleJs || isInsightTemplate) {
if (extensionsToCopy.includes(ext) || isLocaleJs) {
fs.copyFileSync(sourcePath, targetPath);
}
}