Skip to content

Commit

Permalink
Fix exported styles names (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
LitoMore committed Oct 12, 2022
1 parent 1b4cd21 commit a34bcf6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/vendor/ansi-styles/index.js
Expand Up @@ -65,6 +65,11 @@ const styles = {
},
};

export const modifierNames = Object.keys(styles.modifier);
export const foregroundColorNames = Object.keys(styles.color);
export const backgroundColorNames = Object.keys(styles.bgColor);
export const colorNames = [...foregroundColorNames, ...backgroundColorNames];

function assembleStyles() {
const codes = new Map();

Expand Down Expand Up @@ -216,8 +221,3 @@ function assembleStyles() {
const ansiStyles = assembleStyles();

export default ansiStyles;

export const modifierNames = Object.keys(styles.modifier);
export const foregroundColorNames = Object.keys(styles.color);
export const backgroundColorNames = Object.keys(styles.bgColor);
export const colorNames = [...foregroundColorNames, ...backgroundColorNames];

0 comments on commit a34bcf6

Please sign in to comment.