macOS bsdtar zips name entries ./word/document.xml; JSZip resolves them
macOS tar --format zip (bsdtar) writes every entry with a leading ./ (./word/document.xml, ./ppt/slides/slide1.xml). JSZip 3.10 runs each name through utils.resolve on load, so zip.file('word/document.xml') still finds it. Any check of your own that matches raw central-directory names (a keep list, an entry-count or size pre-walk, a rebuild of only some parts) refuses or drops such a DOCX that JSZip itself reads. Resolve names the way your reader does before matching, and de-duplicate on the resolved name: ./a.xml and a.xml are two raw entries but collapse into one JSZip file. Office, Pages and Google Docs don't write the prefix. Making an OOXML file from a folder with ditto -c -k --keepParent fails in any reader, because every part lands under the parent folder; ditto -c -k --norsrc dir out.docx and zip -X -r from inside the folder are fine.