From c35a1e7c50daf210073e03d84e59f68f3a67035e Mon Sep 17 00:00:00 2001 From: Waldemar Reusch Date: Wed, 26 Apr 2023 22:48:06 +0200 Subject: [PATCH] fix: fix paths after changing root path param meaning --- src/bin/tools/jar.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/tools/jar.ts b/src/bin/tools/jar.ts index 981a3ef6..962f994e 100644 --- a/src/bin/tools/jar.ts +++ b/src/bin/tools/jar.ts @@ -73,8 +73,9 @@ export default async function jar({ groupId, artifactId, version, rootPath, targ await mkdir(dirname(targetPath), { recursive: true }); const asyncPathGeneratorFn = async function* (): ZipEntryGenerator { - for await (const fsPath of walk(join(rootPath, "src", "main", "resources"))) { - const zipPath = relative(rootPath, fsPath).split(sep).join("/"); + const resourcesPath = join(rootPath, "src", "main", "resources"); + for await (const fsPath of walk(resourcesPath)) { + const zipPath = relative(resourcesPath, fsPath).split(sep).join("/"); yield { fsPath, zipPath }; } yield {