diff options
author | V <vendicated@riseup.net> | 2023-06-13 02:36:25 +0200 |
---|---|---|
committer | V <vendicated@riseup.net> | 2023-06-13 03:45:05 +0200 |
commit | 07a9adbce25e42dcd4d1eb25ee011328d0543304 (patch) | |
tree | c4ea6230e57cc3a77adc53c25efb91ea148a6dea /scripts/build | |
parent | 42d8211871d84e2650f7c762c66e2ee2e6c58968 (diff) | |
download | Vencord-07a9adbce25e42dcd4d1eb25ee011328d0543304.tar.gz Vencord-07a9adbce25e42dcd4d1eb25ee011328d0543304.tar.bz2 Vencord-07a9adbce25e42dcd4d1eb25ee011328d0543304.zip |
🧹🧹
Diffstat (limited to 'scripts/build')
-rw-r--r-- | scripts/build/common.mjs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/build/common.mjs b/scripts/build/common.mjs index 24518fa..a6b170a 100644 --- a/scripts/build/common.mjs +++ b/scripts/build/common.mjs @@ -64,7 +64,7 @@ export const globPlugins = kind => ({ }); build.onLoad({ filter, namespace: "import-plugins" }, async () => { - const pluginDirs = ["plugins", "userplugins"]; + const pluginDirs = ["plugins/_api", "plugins/_core", "plugins", "userplugins"]; let code = ""; let plugins = "\n"; let i = 0; @@ -72,8 +72,9 @@ export const globPlugins = kind => ({ if (!existsSync(`./src/${dir}`)) continue; const files = await readdir(`./src/${dir}`); for (const file of files) { - if (file.startsWith(".")) continue; + if (file.startsWith("_") || file.startsWith(".")) continue; if (file === "index.ts") continue; + const fileBits = file.split("."); if (fileBits.length > 2 && ["ts", "tsx"].includes(fileBits.at(-1))) { const mod = fileBits.at(-2); |