diff --git a/.husky/pre-commit b/.husky/pre-commit index 39953830f..f6bbe2ee7 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -pnpm -- lerna run --concurrency 1 --stream precommit --since HEAD --exclude-dependents +FORCE_COLOR=1 pnpm -- lerna run --concurrency 1 --stream precommit --since HEAD --exclude-dependents diff --git a/package.json b/package.json index fcb10b029..16d186e63 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "lerna": "lerna", "bootstrap": "lerna bootstrap", "prepare": "if test \"$NODE_ENV\" != \"production\" ; then husky install && lerna run --stream prepack ; fi", - "dev": "lerna run --parallel dev" + "dev": "lerna --scope=@logto/{core,ui} exec -- pnpm dev" }, "devDependencies": { "@commitlint/cli": "^13.1.0", diff --git a/packages/ui/package.json b/packages/ui/package.json index 2685fb99a..e772ea7d0 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -8,7 +8,7 @@ "precommit": "lint-staged", "dev:tsc": "tsc -b -w --preserveWatchOutput", "dev:razzle": "razzle start", - "dev": "PORT=5000 concurrently -c \"blue,cyan\" \"pnpm:dev:tsc\" -k \"pnpm:dev:razzle\"", + "dev": "PORT=5000 concurrently -c \"blue,cyan\" -k -n \"ui:tsc,ui:razzle\" \"pnpm:dev:tsc\" \"pnpm:dev:razzle\"", "start": "NODE_ENV=production node build/server.js", "build": "tsc -b && razzle build --noninteractive", "lint": "eslint --ext .ts --ext .tsx src", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f60c94108..5bd362023 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5427,7 +5427,7 @@ packages: engines: {node: '>=10.0.0'} hasBin: true dependencies: - chalk: 4.1.1 + chalk: 4.1.2 date-fns: 2.23.0 lodash: 4.17.21 read-pkg: 5.2.0