Skip to content

Commit

Permalink
Merge pull request #8 from dumlj/feat/gh-page
Browse files Browse the repository at this point in the history
perf: 优化 postinstall
  • Loading branch information
DavidKk authored Nov 27, 2023
2 parents c1a9e69 + e570c39 commit 50d233f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -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',
])
}

Expand Down

0 comments on commit 50d233f

Please sign in to comment.