移除 babel

This commit is contained in:
lyswhut
2026-04-10 09:10:58 +08:00
parent cc192cab44
commit e35895d752
14 changed files with 24 additions and 1965 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
"./types"
],
"paths": { /* Specify a set of entries that re-map imports to additional lookup locations. */
"@common/*": ["common/*"],
"@common/*": ["./*"],
},
},
}
+4 -4
View File
@@ -5,10 +5,10 @@
"./types"
],
"paths": { /* Specify a set of entries that re-map imports to additional lookup locations. */
"@common/*": ["common/*"],
"@main/*": ["main/*"],
"@static/*": ["static/*"],
"@/*": ["./*"],
"@common/*": ["../common/*"],
"@main/*": ["../main/*"],
"@static/*": ["../static/*"],
"@/*": ["../*"],
},
},
}
+4 -4
View File
@@ -3,11 +3,11 @@
"compilerOptions": {
"isolatedModules": true,
"paths": { /* Specify a set of entries that re-map imports to additional lookup locations. */
"@common/*": ["common/*"],
"@common/*": ["../common/*"],
// "@renderer/*": ["renderer/*"],
"@lyric/*": ["renderer-lyric/*"],
"@static/*": ["static/*"],
"@root/*": ["./*"],
"@lyric/*": ["../renderer-lyric/*"],
"@static/*": ["../static/*"],
"@root/*": ["../*"],
},
"typeRoots": [ /* Specify multiple folders that act like './node_modules/@types'. */
"./types"
+5 -5
View File
@@ -3,11 +3,11 @@
"compilerOptions": {
"isolatedModules": true,
"paths": { /* Specify a set of entries that re-map imports to additional lookup locations. */
"@common/*": ["common/*"],
"@renderer/*": ["renderer/*"],
// "@lyric/*": ["renderer-lyric/*"],
"@static/*": ["static/*"],
"@root/*": ["./*"],
"@common/*": ["../common/*"],
"@renderer/*": ["../renderer/*"],
// "@lyric/*": ["../renderer-lyric/*"],
"@static/*": ["../static/*"],
"@root/*": ["../*"],
},
"typeRoots": [ /* Specify multiple folders that act like './node_modules/@types'. */
"./types"
+2 -1
View File
@@ -1,7 +1,7 @@
import { checkPath, joinPath, extname, basename, readFile, getFileStats } from '@common/utils/nodejs'
import { formatPlayTime } from '@common/utils/common'
import type { IComment } from 'music-metadata/lib/type'
import { decodeKrc } from '@common/utils/lyricUtils/kg'
import { type IAudioMetadata } from 'music-metadata'
export const checkDownloadFileAvailable = async(musicInfo: LX.Download.ListItem, savePath: string): Promise<boolean> => {
return musicInfo.isComplate && !/\.ape$/.test(musicInfo.metadata.fileName) &&
@@ -164,6 +164,7 @@ export const getLocalMusicFilePic = async(path: string) => {
// return lyricInfo
// }
type IComment = NonNullable<IAudioMetadata['common']['comment']> extends Array<infer U> ? U : never
/**
* 获取歌曲文件歌词