sindresorhus / gulp-zip

ZIP compress files
MIT License
270 stars 47 forks source link

Files without name are ignored during zip (e.g. ".txt") #116

Closed AndreasThumfart closed 4 years ago

AndreasThumfart commented 4 years ago

As the title says, files which only have and ending, but no actual name, like .txt, .xml or .config are ignored during packaging.

Error is reproducable the following way: File structure: Folder "test" with two files: ".txt" and "test.txt"

Command used: gulp.src("./test/**") .pipe(zip("test.zip")) .pipe(gulp.dest("."))

Zip file "test.zip" including the file "test.txt" is created. File ".txt" is missing.

sindresorhus commented 4 years ago

You want the dot option: https://gulpjs.com/docs/en/api/src

AndreasThumfart commented 4 years ago

Thanks, that solves my problem!