From dbf7f2009989246eea91e587d14a248a57733258 Mon Sep 17 00:00:00 2001 From: Muhammad Sammy Date: Tue, 15 Sep 2020 12:11:39 +0200 Subject: [PATCH] fix(types): add missing 'group' type for group-* variants (fixes #53) --- src/cli/ClassesGenerator.ts | 2 ++ tsconfig.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cli/ClassesGenerator.ts b/src/cli/ClassesGenerator.ts index 4ab43d6e..a25c431a 100644 --- a/src/cli/ClassesGenerator.ts +++ b/src/cli/ClassesGenerator.ts @@ -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); } diff --git a/tsconfig.json b/tsconfig.json index 65194af9..cc7106a6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,5 +16,5 @@ "strict": true }, "include": ["src"], - "exclude": ["node_modules", "dist", "es", "lib", "tailwindcss-classnames.ts"] + "exclude": ["node_modules", "dist", "es", "lib"] }