UNPKG

unity-find-fault

Version:

A tool to find fault in unity project.

15 lines 558 B
import fg from "fast-glob"; import path from "path"; import { toolchain } from "../toolchain.js"; export class AtlasCleaner { async lookUp() { const allowExts = ['.png', '.jpg', '.tga']; const files = await fg('**/atlas/**/*', { cwd: toolchain.opts.projectRoot, ignore: ['**/*.meta', 'TsScripts/**/*'] }); for (const f of files) { if (!allowExts.includes(path.extname(f))) { console.log(path.join(toolchain.opts.projectRoot, f)); } } } } //# sourceMappingURL=AtlasCleaner.js.map