mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-02 06:33:40 +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 };
|
|
}
|