mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
fix(cli): artifacts command backward compatibility (#1797)
This commit is contained in:
parent
e930a6aab3
commit
6ec46b749e
@ -41,7 +41,7 @@ interface UserNapiConfig {
|
|||||||
/**
|
/**
|
||||||
* Whether enable default targets
|
* Whether enable default targets
|
||||||
*/
|
*/
|
||||||
default: boolean
|
defaults: boolean
|
||||||
/**
|
/**
|
||||||
* Additional targets to be compiled for
|
* Additional targets to be compiled for
|
||||||
*/
|
*/
|
||||||
@ -119,7 +119,7 @@ export async function readNapiConfig(path: string): Promise<NapiConfig> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!targets.length) {
|
if (!targets.length) {
|
||||||
if (userNapiConfig.triples?.default) {
|
if (userNapiConfig.triples?.defaults) {
|
||||||
targets = targets.concat(DEFAULT_TARGETS)
|
targets = targets.concat(DEFAULT_TARGETS)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user