fix: ensure plurals are properly handled (#8070)

This commit is contained in:
Aiden Cline
2026-01-12 13:21:01 -08:00
committed by GitHub
parent db7243c364
commit 735f3d17bc
4 changed files with 237 additions and 25 deletions

View File

@@ -31,7 +31,7 @@ export namespace ToolRegistry {
export const state = Instance.state(async () => {
const custom = [] as Tool.Info[]
const glob = new Bun.Glob("tool/*.{js,ts}")
const glob = new Bun.Glob("{tool,tools}/*.{js,ts}")
for (const dir of await Config.directories()) {
for await (const match of glob.scan({