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
|
// compatible with old config
|
||||||
if (userNapiConfig?.name) {
|
if (userNapiConfig?.name) {
|
||||||
console.warn(
|
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
|
napiConfig.binaryName = userNapiConfig.name
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!targets.length) {
|
if (!targets.length) {
|
||||||
let deprecatedWarned = false
|
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) {
|
if (userNapiConfig.triples?.defaults) {
|
||||||
deprecatedWarned = true
|
deprecatedWarned = true
|
||||||
console.warn(warning)
|
console.warn(warning)
|
||||||
|
|
Loading…
Reference in a new issue