From 8ca2c23d18cc2b61f14610f4609fd957fe673062 Mon Sep 17 00:00:00 2001 From: Syngnat Date: Wed, 22 Jul 2026 16:53:49 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(ci):=20=E8=A1=A5=E5=85=A8?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=20statSync=20=E7=B1=BB=E5=9E=8B=E5=A3=B0?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 补齐 node:fs 测试 shim 的 statSync 返回类型 - 修复干净 CI 环境下前端 TypeScript 构建失败 --- frontend/src/node-test-shims.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/node-test-shims.d.ts b/frontend/src/node-test-shims.d.ts index 5ea40b80..9bac6365 100644 --- a/frontend/src/node-test-shims.d.ts +++ b/frontend/src/node-test-shims.d.ts @@ -1,6 +1,7 @@ declare module 'node:fs' { export function readdirSync(path: string | URL): string[]; export function readFileSync(path: string | URL, encoding: string): string; + export function statSync(path: string | URL): { isDirectory(): boolean }; } declare module 'node:path' {