Skip to content

Commit

Permalink
chore(cli): change warning message to yellow
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Dec 16, 2023
1 parent 5f7e170 commit c3eeba1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cli/src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c3eeba1

Please sign in to comment.