Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 9d7ca00

Browse files
committed
refactor(compiler/src/index.ts): pattern
1 parent 9210a0f commit 9d7ca00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ function isStyleClass(filePath: string): boolean {
4343
} else {
4444
appRoot = path.join(process.cwd(), '../../');
4545
}
46-
const csstsPattern = [path.join(appRoot, '**/*.ts'), path.join(appRoot, '**/*.tsx')];
47-
const files = (await fg(csstsPattern)) as string[];
46+
const pattern = [path.join(appRoot, '**/*.{ts,tsx}')];
47+
const files = (await fg(pattern)) as string[];
4848
const styleFiles = files.filter(file => {
4949
return isStyleClass(file);
5050
});

0 commit comments

Comments
 (0)