fix(cli): artifacts command backward compatibility (#1797)

This commit is contained in:
LongYinan 2023-11-08 20:07:29 +08:00 committed by GitHub
parent e930a6aab3
commit 6ec46b749e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
} }