mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 14:10:27 +08:00
13 lines
217 B
TypeScript
13 lines
217 B
TypeScript
import fs from "fs";
|
|
|
|
export function createModule() {
|
|
let dirs: string[] = [];
|
|
|
|
try {
|
|
dirs = fs.readdirSync("./src/modules");
|
|
dirs = dirs.filter((e) => !e.includes("."));
|
|
} catch (err) {}
|
|
|
|
return { dirs };
|
|
}
|