mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(cli): remove unused type conversion
This commit is contained in:
parent
116b057cdb
commit
a8f73f5e10
@ -66,14 +66,14 @@ function resolveDocuments(components: string[]): DocumentItem[] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const staticDocs = glob.sync(join(DOCS_DIR, '**/*.md')).map(path => {
|
const staticDocs = glob.sync(join(DOCS_DIR, '**/*.md')).map(path => {
|
||||||
const pairs = parse(path.toString()).name.split('.');
|
const pairs = parse(path).name.split('.');
|
||||||
return {
|
return {
|
||||||
name: formatName(pairs[0], pairs[1] || defaultLang),
|
name: formatName(pairs[0], pairs[1] || defaultLang),
|
||||||
path
|
path
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
return [...staticDocs, ...docs.filter(item => existsSync(item.path))] as DocumentItem[];
|
return [...staticDocs, ...docs.filter(item => existsSync(item.path))];
|
||||||
}
|
}
|
||||||
|
|
||||||
function genImportDocuments(items: DocumentItem[]) {
|
function genImportDocuments(items: DocumentItem[]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user