diff --git a/src/bin/tools/jar.ts b/src/bin/tools/jar.ts index d6fa26c9..4964ed72 100644 --- a/src/bin/tools/jar.ts +++ b/src/bin/tools/jar.ts @@ -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); } }