diff --git a/cli/src/build.ts b/cli/src/build.ts index 1f3429b2..e118c18b 100644 --- a/cli/src/build.ts +++ b/cli/src/build.ts @@ -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,