mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-30 19:23:29 -05:00
Fix some issues I made
This commit is contained in:
parent
857e4ae872
commit
4d0152b1c2
2 changed files with 2 additions and 4 deletions
|
@ -247,10 +247,9 @@ function isPluginFile({ name }: { name: string; }) {
|
||||||
.filter(isPluginFile)
|
.filter(isPluginFile)
|
||||||
.map(async dirent => {
|
.map(async dirent => {
|
||||||
const [data, readme] = await parseFile(await getEntryPoint(dir, dirent));
|
const [data, readme] = await parseFile(await getEntryPoint(dir, dirent));
|
||||||
plugins.push(data);
|
plugins.sort().push(data);
|
||||||
if (readme) readmes[data.name] = readme;
|
if (readme) readmes[data.name] = readme;
|
||||||
})
|
})
|
||||||
.sort()
|
|
||||||
));
|
));
|
||||||
|
|
||||||
const data = JSON.stringify(plugins);
|
const data = JSON.stringify(plugins);
|
||||||
|
|
|
@ -247,10 +247,9 @@ function isPluginFile({ name }: { name: string; }) {
|
||||||
.filter(isPluginFile)
|
.filter(isPluginFile)
|
||||||
.map(async dirent => {
|
.map(async dirent => {
|
||||||
const [data, readme] = await parseFile(await getEntryPoint(dir, dirent));
|
const [data, readme] = await parseFile(await getEntryPoint(dir, dirent));
|
||||||
plugins.push(data);
|
plugins.sort().push(data);
|
||||||
if (readme) readmes[data.name] = readme;
|
if (readme) readmes[data.name] = readme;
|
||||||
})
|
})
|
||||||
.sort()
|
|
||||||
));
|
));
|
||||||
|
|
||||||
const data = JSON.stringify(plugins);
|
const data = JSON.stringify(plugins);
|
||||||
|
|
Loading…
Reference in a new issue