diff --git a/crates/moonbuild/src/new.rs b/crates/moonbuild/src/new.rs index 848f416b..392010e4 100644 --- a/crates/moonbuild/src/new.rs +++ b/crates/moonbuild/src/new.rs @@ -181,7 +181,8 @@ fn common( // .gitignore { let gitignore = target_dir.join(".gitignore"); - let content = "target/\n.mooncakes/\n"; + let content = ["target/", ".mooncakes/", ".DS_Store"]; + let content = content.join("\n") + "\n"; let mut file = std::fs::File::create(gitignore).unwrap(); file.write_all(content.as_bytes()).unwrap(); }