Skip to content

Commit

Permalink
fix search options for tasks and genfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanatkn committed Jun 23, 2024
1 parent a087082 commit f17187a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-rules-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ryanatkn/gro': patch
---

fix search options for tasks and genfiles
3 changes: 2 additions & 1 deletion src/lib/gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,9 @@ export const find_genfiles = async (
resolved_input_files_by_input_path,
resolved_input_files_by_root_dir,
input_directories_with_no_files,
} = await resolve_input_files(resolved_input_paths, (id) =>
} = await resolve_input_files(resolved_input_paths, (id, options) =>
search_fs(id, {
...options,
filter: config.search_filters,
file_filter: (p) => extensions.some((e) => p.includes(e)),
}),
Expand Down
3 changes: 2 additions & 1 deletion src/lib/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ export const find_tasks = async (
resolved_input_files_by_input_path,
resolved_input_files_by_root_dir,
input_directories_with_no_files,
} = await resolve_input_files(resolved_input_paths, (id) =>
} = await resolve_input_files(resolved_input_paths, (id, options) =>
search_fs(id, {
...options,
filter: config.search_filters,
file_filter: (p) => TASK_FILE_SUFFIXES.some((s) => p.endsWith(s)),
}),
Expand Down

0 comments on commit f17187a

Please sign in to comment.