Skip to content

Commit

Permalink
fix: glob path
Browse files Browse the repository at this point in the history
  • Loading branch information
GiovanniCardamone committed Mar 24, 2022
1 parent ca3ad6d commit df0392a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default fastifyPlugin<FastifyAutosecurityOptions>(
)
}

const securities = await glob(`${dirPath}/[!.|_]*[!.test|.spec].[t|j]s`)
const securities = await glob(`${dirPath}/*.[t|j]s`)
const securityModules: Record<string, StrictSecurity<any>> = {}

for (const security of securities) {
Expand Down

0 comments on commit df0392a

Please sign in to comment.