Merge pull request #301 from keycloakify/lordvlad-patch-1

Update jar.ts
This commit is contained in:
Joseph Garrone
2023-04-05 18:00:06 +02:00
committed by GitHub

View File

@ -48,7 +48,7 @@ export async function jarStream({ groupId, artifactId, version, asyncPathGenerat
for await (const entry of asyncPathGeneratorFn()) {
if ("buffer" in entry) {
zipFile.addBuffer(entry.buffer, entry.zipPath);
} else if ("fsPath" in entry) {
} else if ("fsPath" in entry && entry.fsPath.endsWith(sep)) {
zipFile.addFile(entry.fsPath, entry.zipPath);
}
}