import * as fs from "fs" import * as path from "path" export function getArguments() { return process.argv.slice(2) // Exclude "node" and script path } export function getAllFiles( dirPath: string, arrayOfFiles: string[] = [], ): string[] { const files = fs.readdirSync(dirPath) files.forEach((file) => { const filePath = path.join(dirPath, file) if (fs.statSync(filePath).isDirectory()) { getAllFiles(filePath, arrayOfFiles) } else { arrayOfFiles.push(filePath) } }) return arrayOfFiles }