fix(cli): artifacts command backward compatibility (#1797)
This commit is contained in:
parent
e930a6aab3
commit
6ec46b749e
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ interface UserNapiConfig {
|
|||
/**
|
||||
* Whether enable default targets
|
||||
*/
|
||||
default: boolean
|
||||
defaults: boolean
|
||||
/**
|
||||
* Additional targets to be compiled for
|
||||
*/
|
||||
|
@ -119,7 +119,7 @@ export async function readNapiConfig(path: string): Promise<NapiConfig> {
|
|||
}
|
||||
|
||||
if (!targets.length) {
|
||||
if (userNapiConfig.triples?.default) {
|
||||
if (userNapiConfig.triples?.defaults) {
|
||||
targets = targets.concat(DEFAULT_TARGETS)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue