chore : fix windows startup (#44064)

Co-authored-by: 梓安 <yuanzhian@cai-inc.com>
This commit is contained in:
AN 2023-08-07 18:05:33 +08:00 committed by GitHub
parent 1273cc9d01
commit d989e9495e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -8,9 +8,9 @@ const output = '.dumi/preset';
// Collect components
const componentNames = globSync(
path.join(process.cwd(), 'components/!(version|icon|col|row)/index.zh-CN.md'),
path.join(process.cwd(), 'components/!(version|icon|col|row)/index.zh-CN.md').split(path.sep).join('/'),
)
.map((filePath) => filePath.match(/components\/([^/]*)\//)![1])
.map((filePath) => filePath.replace(/\\/g, '/').match(/components\/([^/]*)\//)![1])
.filter((name) => name !== 'overview');
const camelComponentNames = componentNames.map((componentName) =>

View File

@ -14,7 +14,7 @@ export const styleFiles = globSync(
path.join(
process.cwd(),
'components/!(version|config-provider|icon|auto-complete|col|row|time-picker|qrcode)/style/index.?(ts|tsx)',
),
).split(path.sep).join('/'),
);
export const generateCssinjs = ({ key, beforeRender, render }: GenCssinjsOptions) =>