target-file-discovery

    Reusable target file discovery for MoonBit

    target-file-discovery
    filesystem
    gitignore
    Download zip
    Author
    Version
    0.1.0
    License
    MIT
    Last updated
    3 months ago
    Downloads
    330

    #totto2727/target-file-discovery

    MoonBit port of the original @package/target-file-discovery local package.

    It provides reusable helpers to:

    • find a target file directly under a home-level directory
    • find the nearest target file in ancestors bounded by a top directory
    • collect target files recursively while using .gitignore rules only to decide whether directories should be traversed

    moon build --target native writes build artifacts under the repository-root _build/native/ tree.

    collect_recursive_target_files

    async fn collect_recursive_target_files(start_dir : String, file_name : String) -> Array[String]

    find_home_target_file

    async fn find_home_target_file(home_dir : String, file_name : String) -> String

    find_parent_target_file

    async fn find_parent_target_file(file_name : String, top_dir : String, start_dir : String) -> String

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    Ā© 2026 mooncakes.io