fix(cli): js binding template (#1788)

- Close https://github.com/napi-rs/napi-rs/issues/1775
This commit is contained in:
LongYinan 2023-11-06 14:00:25 +08:00 committed by GitHub
parent 3deae16442
commit dac073805b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -290,7 +290,7 @@ if (!nativeBinding) {
} }
${idents ${idents
.map((ident) => `module.exports.${ident} = binding.${ident}`) .map((ident) => `module.exports.${ident} = nativeBinding.${ident}`)
.join('\n')} .join('\n')}
` `
} }