feat: add .dcr/ build facts and canonical artifact paths for IDE integrations

This commit is contained in:
2026-08-05 00:37:00 +08:00
parent 794d571d58
commit b9cbef43e9
27 changed files with 1590 additions and 326 deletions

View File

@@ -24,8 +24,11 @@ pub fn init(path: &Path) -> Result<(), String> {
let gitignore_path = path.join(".gitignore");
if !gitignore_path.exists() {
fs::write(&gitignore_path, "/target\n")
fs::write(&gitignore_path, "/target\n.dcr/\n")
.map_err(|e| format!("failed to create .gitignore: {}", e))?;
} else {
crate::utils::fs::ensure_gitignore_has_dcr(path)
.map_err(|e| format!("failed to update .gitignore: {}", e))?;
}
Ok(())