From 9d5de44b7e802f0051f0e51a277644b7079bd3c2 Mon Sep 17 00:00:00 2001 From: undefined Date: Sun, 27 Sep 2020 23:10:33 +0800 Subject: [PATCH] =?UTF-8?q?workspace:=20build=E6=97=B6=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E7=A9=BA=E6=96=87=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/build.js | 1 + 1 file changed, 1 insertion(+) diff --git a/build/build.js b/build/build.js index ad263e3d5..b32ec49fd 100644 --- a/build/build.js +++ b/build/build.js @@ -54,6 +54,7 @@ console.log(packages); for (const package of packages) { if (package !== 'hydrooj') config.references.push({ path: `packages/${package}` }); const files = fs.readdirSync(path.resolve(process.cwd(), 'packages', package)); + if (!files.includes('src') && !files.map(n => n.split('.')[1]).includes('ts')) continue; fs.writeFileSync( path.resolve(process.cwd(), 'packages', package, 'tsconfig.json'), files.includes('src') ? JSON.stringify(configSrc) : JSON.stringify(configFlat),