fix: glob pattern for document file (#7055)

This commit is contained in:
ClarkXia 2025-03-06 11:14:51 +08:00 committed by GitHub
parent e299625533
commit 15cd5f7f6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
'@ice/app': patch
---
fix: glob pattern for document

View File

@ -2,7 +2,7 @@ import * as path from 'path';
import fg from 'fast-glob';
export default function hasDocument(rootDir: string) {
const document = fg.sync('document.{tsx,ts,jsx.js}', {
const document = fg.sync('document.{tsx,ts,jsx,js}', {
cwd: path.join(rootDir, 'src'),
});
return document.length > 0;