Merge pull request #301 from keycloakify/lordvlad-patch-1
Update jar.ts
This commit is contained in:
@ -48,7 +48,7 @@ export async function jarStream({ groupId, artifactId, version, asyncPathGenerat
|
|||||||
for await (const entry of asyncPathGeneratorFn()) {
|
for await (const entry of asyncPathGeneratorFn()) {
|
||||||
if ("buffer" in entry) {
|
if ("buffer" in entry) {
|
||||||
zipFile.addBuffer(entry.buffer, entry.zipPath);
|
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);
|
zipFile.addFile(entry.fsPath, entry.zipPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user