Skip to content

Commit b7ce5c6

Browse files
committed
build(models): run prettier immediately after zod2md docs generation
1 parent 77de338 commit b7ce5c6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/models/project.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@
55
"projectType": "library",
66
"targets": {
77
"generate-docs": {
8-
"command": "npx zod2md --config packages/models/zod2md.config.ts",
8+
"executor": "nx:run-commands",
9+
"options": {
10+
"commands": [
11+
"zod2md --config {projectRoot}/zod2md.config.ts",
12+
"prettier --write {projectRoot}/docs/models-reference.md"
13+
],
14+
"parallel": false
15+
},
916
"cache": true,
1017
"inputs": ["production", "^production", "{projectRoot}/zod2md.config.ts"],
1118
"outputs": ["{projectRoot}/docs/models-reference.md"]

0 commit comments

Comments
 (0)