use std::path::PathBuf;
use crate::fs::File;
impl File<'_> {
pub fn get_source_files(&self) -> Vec<PathBuf> {
if let Some(ext) = &self.ext {
match &ext[..] {
"css" => vec![self.path.with_extension("sass"), self.path.with_extension("scss"), self.path.with_extension("styl"), self.path.with_extension("less")], "mjs" => vec![self.path.with_extension("mts")], "cjs" => vec![self.path.with_extension("cts")], "js" => vec![self.path.with_extension("coffee"), self.path.with_extension("ts")], "aux" | "bbl" | "bcf" | "blg" | "fdb_latexmk" | "fls" | "headfootlength" | "lof" | "log" | "lot" | "out" | "toc" | "xdv" => vec![self.path.with_extension("tex")],
_ => vec![], }
} else {
vec![] }
}
}