fix(cli): manifestPath and js binding output path (#1847)
This commit is contained in:
parent
3ecb11f35d
commit
1273735250
1 changed files with 6 additions and 2 deletions
|
@ -556,6 +556,10 @@ class Builder {
|
|||
this.args.push('--profile', this.options.profile)
|
||||
}
|
||||
|
||||
if (this.options.manifestPath) {
|
||||
this.args.push('--manifest-path', this.options.manifestPath)
|
||||
}
|
||||
|
||||
if (this.options.cargoOptions?.length) {
|
||||
this.args.push(...this.options.cargoOptions)
|
||||
}
|
||||
|
@ -745,7 +749,7 @@ class Builder {
|
|||
return
|
||||
}
|
||||
|
||||
const name = parse(this.options.jsBinding ?? 'index.js').name
|
||||
const name = this.options.jsBinding ?? 'index.js'
|
||||
|
||||
const cjs = createCjsBinding(
|
||||
this.config.binaryName,
|
||||
|
@ -754,7 +758,7 @@ class Builder {
|
|||
)
|
||||
|
||||
try {
|
||||
const dest = join(this.outputDir, `${name}.js`)
|
||||
const dest = join(this.outputDir, name)
|
||||
debug('Writing js binding to:')
|
||||
debug(' %i', dest)
|
||||
await writeFileAsync(dest, cjs, 'utf-8')
|
||||
|
|
Loading…
Reference in a new issue