mirror of https://github.com/alibaba/ice.git
fix: glob pattern for document file (#7055)
This commit is contained in:
parent
e299625533
commit
15cd5f7f6f
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@ice/app': patch
|
||||
---
|
||||
|
||||
fix: glob pattern for document
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue