Skip to content

Commit

Permalink
feat: add error to colored prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maneike committed Nov 4, 2024
1 parent 3b8984a commit 7d48871
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/core/utils/shared/logWithColoredPrefix.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import chalk from 'chalk';
import gradient from 'gradient-string';

type Name = 'stapler' | 'turborepo' | 'supabase' | 'payload' | 'github' | 'prettier' | 'vercel';
type Name = 'stapler' | 'turborepo' | 'supabase' | 'payload' | 'github' | 'prettier' | 'vercel' | 'error';

type NameProps = {
name: Name;
Expand Down Expand Up @@ -45,6 +45,11 @@ const names: NameProps[] = [
prefix: 'Vercel',
colors: ['#FFF', '#FFF'],
},
{
name: 'error',
prefix: 'Error',
colors: ['#990000', '#FF0000'],
},
];

export const logWithColoredPrefix = (name: Name, messages: string[] | string) => {
Expand Down

0 comments on commit 7d48871

Please sign in to comment.