in src/io/xpi.ts [88:108]
handleEntry(entry: Entry, reject: (error: Error) => void) {
if (/\/$/.test(entry.fileName)) {
return;
}
if (!this.shouldScanFile(entry.fileName, false)) {
this.stderr.debug(`skipping file: ${entry.fileName}`);
return;
}
if (this.entries.includes(entry.fileName)) {
this.stderr.info(oneLine`found duplicate file entry: "${entry.fileName}"
in package`);
reject(
new DuplicateZipEntryError(oneLine`Entry "${entry.fileName}" has already
been seen`),
);
return;
}
this.entries.push(entry.fileName);
this.files[entry.fileName] = entry;
}