-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also, remove all `index.ts` files except root, re-export all from root, no more deep-imports.
- Loading branch information
1 parent
55831fa
commit 92ba4de
Showing
36 changed files
with
148 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,43 @@ | ||
import * as tty from 'node:tty' | ||
import * as chalk from 'chalk' | ||
|
||
export { chalk } | ||
|
||
/** | ||
* Based on: https://github.com/sindresorhus/yoctocolors/pull/5 | ||
* | ||
* @experimental | ||
*/ | ||
export const hasColors = !process.env['NO_COLOR'] && tty.WriteStream.prototype.hasColors() | ||
|
||
// The point of re-exporting is: | ||
// 1. Fix typings to allow to pass `number` (very common case) | ||
// 2. Easier/shorter to import, rather than from 'chalk' | ||
// export type ColorFn = (...args: (string | number)[]) => string | ||
|
||
export const white = chalk.white | ||
export const dimWhite = chalk.dim.white | ||
export const boldWhite = chalk.bold.white | ||
export const inverseWhite = chalk.inverse.white | ||
export const grey = chalk.grey | ||
export const dimGrey = chalk.dim.grey | ||
export const boldGrey = chalk.bold.grey | ||
export const yellow = chalk.yellow | ||
export const dimYellow = chalk.dim.yellow | ||
export const boldYellow = chalk.bold.yellow | ||
export const inverseYellow = chalk.inverse.yellow | ||
export const green = chalk.green | ||
export const dimGreen = chalk.dim.green | ||
export const boldGreen = chalk.bold.green | ||
export const red = chalk.red | ||
export const dimRed = chalk.dim.red | ||
export const boldRed = chalk.bold.red | ||
export const blue = chalk.blue | ||
export const dimBlue = chalk.dim.blue | ||
export const boldBlue = chalk.bold.blue | ||
export const magenta = chalk.magenta | ||
export const dimMagenta = chalk.dim.magenta | ||
export const boldMagenta = chalk.bold.magenta | ||
export const cyan = chalk.cyan | ||
export const dimCyan = chalk.dim.cyan | ||
export const boldCyan = chalk.bold.cyan |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.