Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

412 B
Raw Blame
import pc from 'picocolors'

/**
 * Print the one-line notice a deprecated command or flag shows before it runs.
 * Written to stderr so scripts capturing stdout are unaffected.
 */
export function warnDeprecated(used: string, replacement: string): void {
  console.error(
    pc.yellow(
      `${pc.bold(used)} is deprecated and will be removed in Spree 7.0. Use ${pc.bold(replacement)} instead.`,
    ),
  )
}