node-zip icon indicating copy to clipboard operation
node-zip copied to clipboard

Zipping a .tgz file corrupts the file

Open caiismyname opened this issue 6 years ago • 0 comments

If I run yarn pack (which outputs a .tgz), then read in the the resulting file let content = fs.readFileSync("package.tgz", "utf8") then zip it zip.file("package.tgz", content) , trying to unzip the resulting file once the overall package is unzipped results in a corrupted .tgz whichtar -xzf is unable to unpack.

caiismyname avatar Jul 20 '18 00:07 caiismyname