From 6ec46b749e74e7de1e4ec1c612d1a2be888cc52f Mon Sep 17 00:00:00 2001 From: LongYinan Date: Wed, 8 Nov 2023 20:07:29 +0800 Subject: [PATCH] fix(cli): artifacts command backward compatibility (#1797) --- cli/src/utils/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/utils/config.ts b/cli/src/utils/config.ts index e42a5b29..e5b2837e 100644 --- a/cli/src/utils/config.ts +++ b/cli/src/utils/config.ts @@ -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 { } if (!targets.length) { - if (userNapiConfig.triples?.default) { + if (userNapiConfig.triples?.defaults) { targets = targets.concat(DEFAULT_TARGETS) }