fallow_engine/
public_api.rs1use fallow_config::{PackageJson, ResolvedConfig, WorkspaceInfo};
4use fallow_types::discover::FileId;
5use rustc_hash::FxHashSet;
6
7use crate::module_graph::RetainedModuleGraph;
8
9#[must_use]
11pub fn public_api_package_entry_points(
12 graph: &RetainedModuleGraph,
13 config: &ResolvedConfig,
14 root_pkg: Option<&PackageJson>,
15 workspaces: &[WorkspaceInfo],
16) -> FxHashSet<FileId> {
17 fallow_core::analyze::public_api_package_entry_points(
18 graph.as_graph(),
19 config,
20 root_pkg,
21 workspaces,
22 )
23}