(filePath: string)
| 18 | } |
| 19 | |
| 20 | async function entryExists(filePath: string): Promise<boolean> { |
| 21 | try { |
| 22 | await fs.lstat(filePath) |
| 23 | return true |
| 24 | } catch { |
| 25 | return false |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | async function pluginDescription(relativePath: string): Promise<string> { |
| 30 | const raw = await fs.readFile(path.join(import.meta.dir, "..", relativePath), "utf8") |