diff --git a/.husky/pre-push b/.husky/pre-push index 0dbc593c59..c6a84d27a4 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,6 +1 @@ -pnpm check-lock-files -pnpm pretty-quick --check -NX_TUI=false pnpm nx format-native nx -NX_TUI=false pnpm nx lint-native nx -pnpm check-commit -pnpm documentation +pnpm nx prepush --parallel 8 --tuiAutoExit 0 diff --git a/package.json b/package.json index d451d81a6e..4719e20838 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "commit": "czg", "check-commit": "node ./scripts/commit-lint.js", "check-format": "nx format:check --all", + "check-format:quick": "pretty-quick --check", "check-imports": "node ./scripts/check-imports.js", "check-lock-files": "node ./scripts/check-lock-files.js", "check-documentation-map": "ts-node -P ./scripts/tsconfig.scripts.json ./scripts/documentation/map-link-checker.ts", @@ -407,6 +408,7 @@ "echo", "check-commit", "check-format", + "check-format:quick", "check-imports", "check-lock-files", "check-codeowners" diff --git a/project.json b/project.json index 0dfd6b7046..675976913b 100644 --- a/project.json +++ b/project.json @@ -74,6 +74,9 @@ "{workspaceRoot}/docs/generated" ] }, + "check-format:quick": { + "parallelism": false + }, "lint": { "dependsOn": ["@nx/nx-source:lint-pnpm-lock"], "cache": true, @@ -82,6 +85,16 @@ "lint-pnpm-lock": { "cache": true, "inputs": ["{projectRoot}/pnpm-lock.yaml"] + }, + "prepush": { + "dependsOn": [ + "nx:format-native", + "nx:lint-native", + "documentation", + "check-commit", + "check-format:quick", + "check-lock-files" + ] } } }