diff --git a/packages/git-mob/src/colours.js b/packages/git-mob/src/colours.js deleted file mode 100644 index 4d13ace..0000000 --- a/packages/git-mob/src/colours.js +++ /dev/null @@ -1,13 +0,0 @@ -const RED = '\u001B[31m'; -const YELLOW = '\u001B[33m'; -const RESET = '\u001B[0m'; - -function red(text) { - return RED + text + RESET; -} - -function yellow(text) { - return YELLOW + text + RESET; -} - -export { red, yellow }; diff --git a/packages/git-mob/src/colours.ts b/packages/git-mob/src/colours.ts new file mode 100644 index 0000000..41d4a76 --- /dev/null +++ b/packages/git-mob/src/colours.ts @@ -0,0 +1,15 @@ +const colours = { + red: '\u001B[31m', + yellow: '\u001B[33m', +}; +const reset = '\u001B[0m'; + +function red(text: string) { + return colours.red + text + reset; +} + +function yellow(text: string) { + return colours.yellow + text + reset; +} + +export { red, yellow };