mirror of
https://github.com/thepeacockproject/Peacock
synced 2025-03-01 14:43:02 +01:00
Add plugins folder to debug profile
This commit is contained in:
parent
fdffcc3f67
commit
d7077b858e
@ -101,8 +101,13 @@ async function exportDebugInfo(): Promise<void> {
|
||||
...cpu,
|
||||
}))
|
||||
|
||||
const files = await readdir(process.cwd())
|
||||
const plugins = await Promise.allSettled(
|
||||
const files = [
|
||||
...(await readdir(process.cwd())),
|
||||
...(await readdir(pathResolve(process.cwd(), "plugins"))).map(
|
||||
(file) => `plugins/${file}`,
|
||||
),
|
||||
]
|
||||
const plugins = await Promise.all(
|
||||
[
|
||||
...files.filter((file) => isPlugin(file, "js")),
|
||||
...files.filter((file) => isPlugin(file, "cjs")),
|
||||
|
Loading…
x
Reference in New Issue
Block a user