(filePath)
| 34 | } |
| 35 | |
| 36 | function shouldSkipFile(filePath) { |
| 37 | const normalized = filePath.split(path.sep).join('/'); |
| 38 | if (!normalized.endsWith('.js')) return true; |
| 39 | if (/\.min\.js$/i.test(normalized)) return true; |
| 40 | if (normalized.includes('/assets/vendor/')) return true; |
| 41 | return false; |
| 42 | } |
| 43 | |
| 44 | async function collectJsFiles(directory) { |
| 45 | const result = []; |