From e570c3952b813cea775999a323dbe9fad31037ea Mon Sep 17 00:00:00 2001 From: DavidJones Date: Mon, 27 Nov 2023 23:03:59 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=20postinstall?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/postinstall | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/postinstall b/scripts/postinstall index 86d32f41..5a1ff800 100755 --- a/scripts/postinstall +++ b/scripts/postinstall @@ -3,15 +3,17 @@ ;(async function main () { const fs = require('fs') const { exec } = require('child_process') - const tasks = ['ts-patch install -s'] + const tasks = [] if (fs.existsSync('tsconfig.build.json')) { tasks.push('tsc --build ./tsconfig.build.json') } else { tasks.push(...[ + 'ts-patch install -s', 'lerna run compile --parallel --include-dependencies --scope=@dumlj/tidy-cli --scope=@dumlj/create-cli', 'dumlj install husky', 'dumlj concurrently \"tscfg --exclude \"**/__template__\" --exclude \"**/__example__\"\" \"deps --exclude \"**/__template__\"\"', + 'tsc --build ./tsconfig.build.json', ]) }