Skip to content

Commit 83dd2d8

Browse files
author
John Doe
committed
refactor: wip
1 parent 9f83837 commit 83dd2d8

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

packages/models/project.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@
44
"sourceRoot": "packages/models/src",
55
"projectType": "library",
66
"targets": {
7+
"generate-docs": {
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+
},
16+
"cache": true,
17+
"inputs": ["production", "^production", "{projectRoot}/zod2md.config.ts"],
18+
"outputs": ["{projectRoot}/docs/models-reference.md"]
19+
},
720
"build": {
821
"dependsOn": [
922
"^build",

packages/models/tsconfig.lib.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
"compilerOptions": {
44
"outDir": "../../dist/out-tsc",
55
"declaration": true,
6-
"types": ["node"]
6+
"types": ["node"],
7+
"plugins": [
8+
{
9+
"transform": "./tools/jsdoc-annotation-transformer/dist",
10+
"afterDeclarations": true
11+
}
12+
]
713
},
814
"include": ["src/**/*.ts"],
915
"exclude": [

0 commit comments

Comments
 (0)