Lint fixes
parent
9e2ece71af
commit
4479b202f6
|
@ -36,6 +36,7 @@ const ALIAS_ENTRIES = [
|
|||
const files = fs.readdirSync(folderPath);
|
||||
const targetFile = files.find((file) => {
|
||||
const ext = path.extname(file);
|
||||
|
||||
return ['.vue', '.js'].includes(ext) && path.basename(file, ext).toLowerCase() === fName.toLowerCase();
|
||||
});
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ export interface MetaType {
|
|||
export function toMeta(arr?: any[]): MetaType[] | undefined {
|
||||
return arr?.map((item) => {
|
||||
const it = typeof item === 'string' ? { name: item } : item;
|
||||
|
||||
it.from ??= `primevue/${it?.name?.toLowerCase()}`;
|
||||
|
||||
return it;
|
||||
|
|
|
@ -36,6 +36,7 @@ const ALIAS_ENTRIES = [
|
|||
const files = fs.readdirSync(folderPath);
|
||||
const targetFile = files.find((file) => {
|
||||
const ext = path.extname(file);
|
||||
|
||||
return ['.vue', '.js'].includes(ext) && path.basename(file, ext).toLowerCase() === fName.toLowerCase();
|
||||
});
|
||||
|
||||
|
|
|
@ -86,6 +86,7 @@ export async function renameDTSFile(dir, newName) {
|
|||
await renameDTSFile(fullPath, newName);
|
||||
} else if (entry.name.endsWith('.d.ts')) {
|
||||
const newFullPath = path.join(dir, `${newName}.d.ts`);
|
||||
|
||||
await fs.rename(fullPath, newFullPath);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue