target-file-discovery

Reusable target file discovery for MoonBit

target-file-discovery
filesystem
gitignore
moon add totto2727/target-file-discovery@0.2.1
Download zip
Author
Version
0.2.1
License
MIT
Last updated
10 days ago
Downloads
79

Dependencies

README

#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) -> ReadOnlyArray[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 issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io