From f7c26cccbffa12879f2c2f8331b66bec8582d4de Mon Sep 17 00:00:00 2001 From: Wodann Date: Fri, 9 Sep 2022 05:54:53 -0500 Subject: [PATCH] fix(cli): custom Cargo (build) target directories (#1300) --- cli/src/build.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli/src/build.ts b/cli/src/build.ts index 282c4d2e..10dfb033 100644 --- a/cli/src/build.ts +++ b/cli/src/build.ts @@ -455,7 +455,6 @@ export class BuildCommand extends Command { const sourcePath = join( targetRootDir, - 'target', targetDir, `${cargoArtifactName}${libExt}`, ) @@ -523,7 +522,7 @@ export class BuildCommand extends Command { async function findUp(dir = process.cwd()): Promise { const dist = join(dir, 'target') if (existsSync(dist)) { - return dir + return dist } const dirs = dir.split(sep) if (dirs.length < 2) {