Skip to content

Commit

Permalink
fix(types): add missing 'group' type for group-* variants (fixes #53)
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadsammy committed Sep 15, 2020
1 parent a0a9d62 commit dbf7f20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/cli/ClassesGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,8 @@ export class ClassesGenerator implements IGenerator {
breakpoints.map((breakpointVariant: string) => {
pseudoClasses.push(breakpointVariant + this.separator + this.prefix + classname);
});
} else if (variant.startsWith('group') && !pseudoClasses.includes('group')) {
pseudoClasses.push('group');
} else {
pseudoClasses.push(variant + this.separator + this.prefix + classname);
}
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"strict": true
},
"include": ["src"],
"exclude": ["node_modules", "dist", "es", "lib", "tailwindcss-classnames.ts"]
"exclude": ["node_modules", "dist", "es", "lib"]
}

0 comments on commit dbf7f20

Please sign in to comment.