feat: 更新 ESLint 配置
Some checks failed
/ surge (push) Successful in 2m34s
/ build-and-deploy-to-vercel (push) Successful in 2m46s
/ lint-build-and-check (push) Has been cancelled
/ playwright (push) Has been cancelled

This commit is contained in:
严浩
2025-04-02 11:27:09 +08:00
parent 9ed4c0bc6b
commit 2bc762a89b
8 changed files with 80 additions and 61 deletions

View File

@ -76,7 +76,7 @@ export function viteArchiverPlugin(options: ArchiverOptions = {}): Plugin {
}
// 根据格式确定文件扩展名
const fileExtension = format === 'zip' ? 'zip' : format === 'tar' ? 'tar' : 'tar.gz';
const fileExtension = format === 'zip' ? 'zip' : (format === 'tar' ? 'tar' : 'tar.gz');
const outputFilePath = path.join(outputPath, `${finalFileName}.${fileExtension}`);
const output = fs.createWriteStream(outputFilePath);