fix: fix paths after changing root path param meaning
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user