TeaWeb/shared/fix-imports.ts

18 lines
369 B
TypeScript
Raw Normal View History

2020-09-12 12:51:03 +00:00
import * as path from "path";
import * as fs from "fs-extra";
async function processFile(file: string) {
}
async function processDirectory(directory: string) {
const files = await fs.readdir(directory);
for(const file of files) {
console.log(file);
}
}
processDirectory(path.join(__dirname, "js")).catch(error => {
console.error(error);
});