Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for path with brackets () #677

Merged
merged 10 commits into from
Sep 14, 2023
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 @@
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