use anyhow::Result;
use std::env;
use std::path::PathBuf;
pub const PACKAGES: [&str; 3] = ["manatsu", "components", "composables"];
pub fn root(pkg: &str) -> Result<PathBuf> {
let cwd = env::current_dir()?;
let path = cwd.join("packages").join(pkg);
Ok(path)
}
pub fn dist(pkg: &str) -> Result<PathBuf> {
let path = root(pkg)?.join("dist");
Ok(path)
}
pub fn dts(pkg: &str) -> Result<PathBuf> {
let path = dist(pkg)?.join("index.d.ts");
Ok(path)
}