diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-03-07 23:16:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 04:16:19 +0000 |
commit | 2c6e9107b6bd85acb249cbc802571a1c55b96227 (patch) | |
tree | 9437e4d3f21a3a93589c0003a36f99624ae3a06e /cli/tools/registry/tar.rs | |
parent | 3745556ccdaa14ac7a9e0849b743669aee124cb3 (diff) |
fix(publish): do not include .gitignore (#22789)
Regression from https://github.com/denoland/deno/pull/22720
Diffstat (limited to 'cli/tools/registry/tar.rs')
-rw-r--r-- | cli/tools/registry/tar.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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() |