fix(publish): ignore .DS_Store while publishing (#22478)

This commit is contained in:
Luca Casonato 2024-02-19 16:48:35 +01:00 committed by GitHub
parent 66424032a2
commit ef43d51497
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,6 +60,7 @@ pub fn create_gzipped_tarball(
if !matches_pattern
|| path.file_name() == Some(OsStr::new(".git"))
|| path.file_name() == Some(OsStr::new("node_modules"))
|| path.file_name() == Some(OsStr::new(".DS_Store"))
{
if file_type.is_dir() {
iterator.skip_current_dir();