Skip to content

Commit c0f0423

Browse files
author
John Doe
committed
refactor: move ts-patch target to zod2md-jsdocs
1 parent 806c743 commit c0f0423

File tree

3 files changed

+13
-17
lines changed

3 files changed

+13
-17
lines changed

packages/models/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"dependsOn": [
99
"^build",
1010
"generate-docs",
11-
"ts-patch",
12-
{ "projects": "zod2md-jsdocs", "target": "build" }
11+
{ "projects": "zod2md-jsdocs", "target": "build" },
12+
{ "projects": "zod2md-jsdocs", "target": "ts-patch" }
1313
]
1414
},
1515
"lint": {},

tools/zod2md-jsdocs/project.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@
66
"targets": {
77
"lint": {},
88
"build": {},
9-
"unit-test": {}
9+
"unit-test": {},
10+
"ts-patch": {
11+
"command": "ts-patch install",
12+
"cache": true,
13+
"inputs": [
14+
"sharedGlobals",
15+
{
16+
"runtime": "ts-patch check"
17+
}
18+
]
19+
}
1020
}
1121
}

tools/zod2md-jsdocs/src/nx-plugin.cjs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
const path = require('node:path');
22

33
const ZOD2MD_CONFIG_FILE = 'zod2md.config.ts';
4-
const TS_PATCH_TARGET_NAME = 'ts-patch';
54
const GENERATE_DOCS_TARGET_NAME = 'generate-docs';
65

7-
/**
8-
* Creates the ts-patch target configuration
9-
* @returns {object} ts-patch target configuration
10-
*/
11-
const createTsPatchTargetConfig = {
12-
command: 'ts-patch install',
13-
cache: true,
14-
inputs: ['sharedGlobals', { runtime: 'ts-patch check' }],
15-
};
16-
176
/**
187
* Creates the docs generation target configuration
198
* @param {object} params - Configuration parameters
@@ -56,9 +45,6 @@ const createNodesV2 = [
5645
projects: {
5746
[normalizedProjectRoot]: {
5847
targets: {
59-
...(jsDocsTypesAugmentation
60-
? { [TS_PATCH_TARGET_NAME]: createTsPatchTargetConfig }
61-
: {}),
6248
[docsTargetName]: createDocsTargetConfig({
6349
config,
6450
output,

0 commit comments

Comments
 (0)