From 2c6e9107b6bd85acb249cbc802571a1c55b96227 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 7 Mar 2024 23:16:19 -0500 Subject: fix(publish): do not include .gitignore (#22789) Regression from https://github.com/denoland/deno/pull/22720 --- cli/tools/registry/tar.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cli/tools') diff --git a/cli/tools/registry/tar.rs b/cli/tools/registry/tar.rs index 0da410764..b5ee4e993 100644 --- a/cli/tools/registry/tar.rs +++ b/cli/tools/registry/tar.rs @@ -63,7 +63,10 @@ pub fn create_gzipped_tarball( } return false; } - e.path.file_name().map(|s| s != ".DS_Store").unwrap_or(true) + e.path + .file_name() + .map(|s| s != ".DS_Store" && s != ".gitignore") + .unwrap_or(true) }) .ignore_git_folder() .ignore_node_modules() -- cgit v1.2.3