fallow_core/discover/mod.rs
1mod entry_points;
2mod infrastructure;
3mod parse_scripts;
4mod walk;
5
6// Re-export types from fallow-types
7pub use fallow_types::discover::{DiscoveredFile, EntryPoint, EntryPointSource, FileId};
8
9// Re-export public functions — preserves the existing `crate::discover::*` API
10pub use entry_points::{
11 compile_glob_set, discover_entry_points, discover_plugin_entry_points,
12 discover_workspace_entry_points,
13};
14pub use infrastructure::discover_infrastructure_entry_points;
15pub use walk::{SOURCE_EXTENSIONS, discover_files};
16
17/// Hidden (dot-prefixed) directories that should be included in file discovery.
18///
19/// Most hidden directories (`.git`, `.cache`, etc.) should be skipped, but certain
20/// convention directories contain source or config files that fallow needs to see:
21/// - `.storybook` — Storybook configuration (the Storybook plugin depends on this)
22/// - `.well-known` — Standard web convention directory
23/// - `.changeset` — Changesets configuration
24/// - `.github` — GitHub workflows and CI scripts
25const ALLOWED_HIDDEN_DIRS: &[&str] = &[".storybook", ".well-known", ".changeset", ".github"];