From c3eeba1e348920fd5925a79d1c5539ec4136e1a1 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Sat, 16 Dec 2023 16:55:11 +0800 Subject: [PATCH] chore(cli): change warning message to yellow --- cli/src/utils/config.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cli/src/utils/config.ts b/cli/src/utils/config.ts index 04b00adf..2141cf02 100644 --- a/cli/src/utils/config.ts +++ b/cli/src/utils/config.ts @@ -150,14 +150,18 @@ export async function readNapiConfig( // compatible with old config if (userNapiConfig?.name) { console.warn( - `[DEPRECATED] napi.name is deprecated, use napi.binaryName instead.`, + yellow( + `[DEPRECATED] napi.name is deprecated, use napi.binaryName instead.`, + ), ) napiConfig.binaryName = userNapiConfig.name } if (!targets.length) { let deprecatedWarned = false - const warning = `[DEPRECATED] napi.triples is deprecated, use napi.targets instead.` + const warning = yellow( + `[DEPRECATED] napi.triples is deprecated, use napi.targets instead.`, + ) if (userNapiConfig.triples?.defaults) { deprecatedWarned = true console.warn(warning)