fix(cli): JS bindgen file now respects destDir (#1481)

This commit is contained in:
Sean Larkin 2023-02-07 22:14:55 -08:00 committed by GitHub
parent f24c9e6e83
commit cb529d21cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -600,7 +600,7 @@ export class BuildCommand extends Command {
this.jsBinding &&
this.jsBinding !== 'false' &&
this.appendPlatformToFilename
? join(process.cwd(), this.jsBinding)
? join(process.cwd(), this.destDir ?? '.', this.jsBinding)
: null
const idents = await processIntermediateTypeFile(
intermediateTypeFile,