mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
chore : fix windows startup (#44064)
Co-authored-by: 梓安 <yuanzhian@cai-inc.com>
This commit is contained in:
parent
1273cc9d01
commit
d989e9495e
@ -8,9 +8,9 @@ const output = '.dumi/preset';
|
|||||||
|
|
||||||
// Collect components
|
// Collect components
|
||||||
const componentNames = globSync(
|
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');
|
.filter((name) => name !== 'overview');
|
||||||
|
|
||||||
const camelComponentNames = componentNames.map((componentName) =>
|
const camelComponentNames = componentNames.map((componentName) =>
|
||||||
|
@ -14,7 +14,7 @@ export const styleFiles = globSync(
|
|||||||
path.join(
|
path.join(
|
||||||
process.cwd(),
|
process.cwd(),
|
||||||
'components/!(version|config-provider|icon|auto-complete|col|row|time-picker|qrcode)/style/index.?(ts|tsx)',
|
'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) =>
|
export const generateCssinjs = ({ key, beforeRender, render }: GenCssinjsOptions) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user