From ca64399f9f02b2cb327045f923e992975ce4253d Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 28 May 2025 10:58:42 -0700 Subject: [PATCH] Ignore lock files in grammar repos It is very common practice to ignore these lock files for libraries, since they do not apply to applications that use the libraries. The lock files are especially not useful in tree-sitter grammar repos, since tree-sitter grammars should not have dependencies. The lock files are just a source of merge conflicts and spurious CI failures. --- cli/src/templates/gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/src/templates/gitignore b/cli/src/templates/gitignore index bc9e191a..87a0c80c 100644 --- a/cli/src/templates/gitignore +++ b/cli/src/templates/gitignore @@ -1,13 +1,16 @@ # Rust artifacts target/ +Cargo.lock # Node artifacts build/ prebuilds/ node_modules/ +package-lock.json # Swift artifacts .build/ +Package.resolved # Go artifacts _obj/