From 1003519f4c082fb06735123eca9c63eeecbc426d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=9B=B9=E5=AE=87?= Date: Mon, 14 Jul 2025 10:37:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=BA=E7=9B=AE=E5=BD=95=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王曹宇 --- build-tools/handleApiFiles.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-tools/handleApiFiles.js b/build-tools/handleApiFiles.js index d12bbacff8..e86bd53520 100755 --- a/build-tools/handleApiFiles.js +++ b/build-tools/handleApiFiles.js @@ -112,7 +112,8 @@ function handleApiFiles(rootPath, type, output) { console.log('error===>', error); } } - if (type === DirType.typeTwo) { + const hasApiDir = fs.existsSync(path.join(output, 'api')); + if (type === DirType.typeTwo && hasApiDir) { NotNullFilePath.forEach((dir) => { const outDir = path.join(output, dir); if (!fs.existsSync(outDir)) { -- Gitee