chore(cli): change warning message to yellow
This commit is contained in:
parent
5f7e170697
commit
c3eeba1e34
1 changed files with 6 additions and 2 deletions
|
@ -150,14 +150,18 @@ export async function readNapiConfig(
|
|||
// compatible with old config
|
||||
if (userNapiConfig?.name) {
|
||||
console.warn(
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue