fix(cli): custom Cargo (build) target directories (#1300)
This commit is contained in:
parent
22adc885d6
commit
f7c26cccbf
1 changed files with 1 additions and 2 deletions
|
@ -455,7 +455,6 @@ export class BuildCommand extends Command {
|
||||||
|
|
||||||
const sourcePath = join(
|
const sourcePath = join(
|
||||||
targetRootDir,
|
targetRootDir,
|
||||||
'target',
|
|
||||||
targetDir,
|
targetDir,
|
||||||
`${cargoArtifactName}${libExt}`,
|
`${cargoArtifactName}${libExt}`,
|
||||||
)
|
)
|
||||||
|
@ -523,7 +522,7 @@ export class BuildCommand extends Command {
|
||||||
async function findUp(dir = process.cwd()): Promise<string | null> {
|
async function findUp(dir = process.cwd()): Promise<string | null> {
|
||||||
const dist = join(dir, 'target')
|
const dist = join(dir, 'target')
|
||||||
if (existsSync(dist)) {
|
if (existsSync(dist)) {
|
||||||
return dir
|
return dist
|
||||||
}
|
}
|
||||||
const dirs = dir.split(sep)
|
const dirs = dir.split(sep)
|
||||||
if (dirs.length < 2) {
|
if (dirs.length < 2) {
|
||||||
|
|
Loading…
Reference in a new issue