Skip to content

Commit

Permalink
feat: add support for path with brackets () (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amber-372 authored Sep 14, 2023
1 parent d51b953 commit 232a0f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/fs/glob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const debug = Debug('unplugin-vue-components:glob')
export function searchComponents(ctx: Context) {
debug(`started with: [${ctx.options.globs.join(', ')}]`)
const root = ctx.root


Check failure on line 10 in src/core/fs/glob.ts

View workflow job for this annotation

GitHub Actions / lint

Trailing spaces not allowed
ctx.options.globs = ctx.options.globs.map((dir) => fg.convertPathToPattern(dir))

Check failure on line 11 in src/core/fs/glob.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected parentheses around single function argument having a body with no curly braces
const files = fg.sync(ctx.options.globs, {
ignore: ['node_modules'],
onlyFiles: true,
Expand Down

0 comments on commit 232a0f4

Please sign in to comment.