Skip to content

Commit

Permalink
fix(cli): custom Cargo (build) target directories (#1300)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wodann committed Sep 9, 2022
1 parent 22adc88 commit f7c26cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cli/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,6 @@ export class BuildCommand extends Command {

const sourcePath = join(
targetRootDir,
'target',
targetDir,
`${cargoArtifactName}${libExt}`,
)
Expand Down Expand Up @@ -523,7 +522,7 @@ export class BuildCommand extends Command {
async function findUp(dir = process.cwd()): Promise<string | null> {
const dist = join(dir, 'target')
if (existsSync(dist)) {
return dir
return dist
}
const dirs = dir.split(sep)
if (dirs.length < 2) {
Expand Down

0 comments on commit f7c26cc

Please sign in to comment.