use std::path::Path;
pub const TSCONFIG_BUILD_JSON: &str = "tsconfig.build.json";
pub const TSCONFIG_JSON: &str = "tsconfig.json";
pub fn get_default_tsconfig_path() -> &'static str {
get_default_tsconfig_path_in(".")
}
pub fn get_default_tsconfig_path_in(directory: impl AsRef<Path>) -> &'static str {
if directory.as_ref().join(TSCONFIG_BUILD_JSON).exists() {
TSCONFIG_BUILD_JSON
} else {
TSCONFIG_JSON
}
}