fix: fix paths after changing root path param meaning

This commit is contained in:
Waldemar Reusch
2023-04-26 22:48:06 +02:00
parent ecb22c3829
commit c35a1e7c50

View File

@ -73,8 +73,9 @@ export default async function jar({ groupId, artifactId, version, rootPath, targ
await mkdir(dirname(targetPath), { recursive: true }); await mkdir(dirname(targetPath), { recursive: true });
const asyncPathGeneratorFn = async function* (): ZipEntryGenerator { const asyncPathGeneratorFn = async function* (): ZipEntryGenerator {
for await (const fsPath of walk(join(rootPath, "src", "main", "resources"))) { const resourcesPath = join(rootPath, "src", "main", "resources");
const zipPath = relative(rootPath, fsPath).split(sep).join("/"); for await (const fsPath of walk(resourcesPath)) {
const zipPath = relative(resourcesPath, fsPath).split(sep).join("/");
yield { fsPath, zipPath }; yield { fsPath, zipPath };
} }
yield { yield {