fix(publish): do not include .gitignore (#22789)

Regression from https://github.com/denoland/deno/pull/22720
This commit is contained in:
David Sherret 2024-03-07 23:16:19 -05:00 committed by GitHub
parent 3745556ccd
commit 2c6e9107b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -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()

View file

@ -360,6 +360,7 @@ fn ignores_gitignore() {
assert_contains!(output, "main.ts");
assert_not_contains!(output, "ignored.ts");
assert_not_contains!(output, "ignored.wasm");
assert_not_contains!(output, ".gitignore");
}
#[test]