Ignore dotfiles in plugin dirs (#447)
This commit is contained in:
parent
68e80c4d4c
commit
84cfe531af
|
@ -68,6 +68,7 @@ export const globPlugins = {
|
||||||
if (!existsSync(`./src/${dir}`)) continue;
|
if (!existsSync(`./src/${dir}`)) continue;
|
||||||
const files = await readdir(`./src/${dir}`);
|
const files = await readdir(`./src/${dir}`);
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
|
if (file.startsWith(".")) continue;
|
||||||
if (file === "index.ts") {
|
if (file === "index.ts") {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue