nx 22.0.0-canary.20251008-05ab516 → 22.0.0-canary.20251010-bfaa91b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/executors.json +16 -16
- package/generators.json +13 -13
- package/migrations.json +100 -95
- package/package.json +11 -14
- package/presets/npm.json +4 -4
- package/schemas/nx-schema.json +1294 -1139
- package/schemas/project-schema.json +359 -359
- package/schemas/workspace-schema.json +165 -165
- package/src/ai/set-up-ai-agents/schema.json +31 -31
- package/src/command-line/release/changelog.d.ts.map +1 -1
- package/src/command-line/release/changelog.js +18 -18
- package/src/command-line/release/config/config.d.ts +6 -2
- package/src/command-line/release/config/config.d.ts.map +1 -1
- package/src/command-line/release/config/config.js +119 -70
- package/src/command-line/release/utils/git.d.ts +2 -2
- package/src/command-line/release/utils/git.d.ts.map +1 -1
- package/src/command-line/release/utils/git.js +5 -5
- package/src/command-line/release/utils/release-graph.d.ts +1 -1
- package/src/command-line/release/utils/release-graph.d.ts.map +1 -1
- package/src/command-line/release/utils/release-graph.js +6 -6
- package/src/command-line/release/utils/shared.js +11 -11
- package/src/command-line/release/version/release-group-processor.d.ts.map +1 -1
- package/src/command-line/release/version/release-group-processor.js +9 -1
- package/src/config/nx-json.d.ts +129 -70
- package/src/config/nx-json.d.ts.map +1 -1
- package/src/core/graph/main.js +1 -1
- package/src/daemon/client/client.d.ts +4 -0
- package/src/daemon/client/client.d.ts.map +1 -1
- package/src/daemon/client/client.js +23 -0
- package/src/daemon/message-types/register-project-graph-listener.d.ts +6 -0
- package/src/daemon/message-types/register-project-graph-listener.d.ts.map +1 -0
- package/src/daemon/message-types/register-project-graph-listener.js +11 -0
- package/src/daemon/server/project-graph-incremental-recomputation.d.ts +3 -1
- package/src/daemon/server/project-graph-incremental-recomputation.d.ts.map +1 -1
- package/src/daemon/server/project-graph-incremental-recomputation.js +13 -5
- package/src/daemon/server/project-graph-listener-sockets.d.ts +8 -0
- package/src/daemon/server/project-graph-listener-sockets.d.ts.map +1 -0
- package/src/daemon/server/project-graph-listener-sockets.js +24 -0
- package/src/daemon/server/server.d.ts.map +1 -1
- package/src/daemon/server/server.js +9 -2
- package/src/executors/noop/schema.json +8 -8
- package/src/executors/run-commands/schema.json +187 -187
- package/src/executors/run-script/schema.json +25 -25
- package/src/migrations/update-22-0-0/consolidate-release-tag-config.d.ts +3 -0
- package/src/migrations/update-22-0-0/consolidate-release-tag-config.d.ts.map +1 -0
- package/src/migrations/update-22-0-0/consolidate-release-tag-config.js +100 -0
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/nx-cloud/generators/connect-to-nx-cloud/schema.json +38 -38
package/schemas/nx-schema.json
CHANGED
|
@@ -1,1226 +1,1381 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
"affected": {
|
|
13
|
-
"type": "object",
|
|
14
|
-
"description": "Default options for `nx affected`.",
|
|
15
|
-
"properties": {
|
|
16
|
-
"defaultBase": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"description": "Default based branch used by affected commands."
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"additionalProperties": false,
|
|
22
|
-
"deprecated": "Use `defaultBase` instead. Support for setting `defaultBase` in `affected` will be removed in Nx 20."
|
|
23
|
-
},
|
|
24
|
-
"extends": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"description": "Specifies the base config to extend."
|
|
27
|
-
},
|
|
28
|
-
"defaultBase": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"description": "Default --base used by affected logic."
|
|
31
|
-
},
|
|
32
|
-
"tasksRunnerOptions": {
|
|
33
|
-
"type": "object",
|
|
34
|
-
"additionalProperties": {
|
|
35
|
-
"$ref": "#/definitions/tasksRunnerOptions"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"namedInputs": {
|
|
39
|
-
"type": "object",
|
|
40
|
-
"description": "Named inputs used by inputs defined in targets",
|
|
41
|
-
"additionalProperties": {
|
|
42
|
-
"$ref": "#/definitions/inputs"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"targetDefaults": {
|
|
46
|
-
"type": "object",
|
|
47
|
-
"description": "Target defaults",
|
|
48
|
-
"additionalProperties": {
|
|
49
|
-
"$ref": "#/definitions/targetDefaultsConfig"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"workspaceLayout": {
|
|
53
|
-
"type": "object",
|
|
54
|
-
"description": "Where new apps + libs should be placed.",
|
|
55
|
-
"properties": {
|
|
56
|
-
"libsDir": {
|
|
57
|
-
"type": "string",
|
|
58
|
-
"description": "Default folder name for libs."
|
|
59
|
-
},
|
|
60
|
-
"appsDir": {
|
|
61
|
-
"type": "string",
|
|
62
|
-
"description": "Default folder name for apps."
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"additionalProperties": false
|
|
66
|
-
},
|
|
67
|
-
"cli": {
|
|
68
|
-
"$ref": "#/definitions/cliOptions"
|
|
69
|
-
},
|
|
70
|
-
"generators": {
|
|
71
|
-
"$ref": "#/definitions/generatorOptions"
|
|
72
|
-
},
|
|
73
|
-
"plugins": {
|
|
74
|
-
"type": "array",
|
|
75
|
-
"description": "Plugins for extending the project graph.",
|
|
76
|
-
"items": {
|
|
77
|
-
"$ref": "#/definitions/plugins"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"tui": {
|
|
81
|
-
"type": "object",
|
|
82
|
-
"description": "Settings for the Nx Terminal User Interface (TUI)",
|
|
83
|
-
"properties": {
|
|
84
|
-
"enabled": {
|
|
85
|
-
"type": "boolean",
|
|
86
|
-
"description": "Whether to enable the Terminal UI whenever possible (based on the current environment and terminal).",
|
|
87
|
-
"default": true
|
|
88
|
-
},
|
|
89
|
-
"autoExit": {
|
|
90
|
-
"oneOf": [
|
|
91
|
-
{
|
|
92
|
-
"type": "boolean"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"type": "number"
|
|
96
|
-
}
|
|
97
|
-
],
|
|
98
|
-
"description": "Whether to exit the TUI automatically after all tasks finish. If set to `true`, the TUI will exit immediately. If set to `false` the TUI will not automatically exit. If set to a number, an interruptible countdown popup will be shown for that many seconds before the TUI exits.",
|
|
99
|
-
"default": 3
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
"additionalProperties": false
|
|
103
|
-
},
|
|
104
|
-
"defaultProject": {
|
|
105
|
-
"type": "string",
|
|
106
|
-
"description": "Default project. When project isn't provided, the default project will be used."
|
|
107
|
-
},
|
|
108
|
-
"nxCloudAccessToken": {
|
|
109
|
-
"type": "string",
|
|
110
|
-
"description": "The access token to use for nx-cloud. If set, the default tasks runner will be nx-cloud."
|
|
111
|
-
},
|
|
112
|
-
"nxCloudUrl": {
|
|
113
|
-
"type": "string",
|
|
114
|
-
"description": "Specifies the url pointing to an instance of nx cloud. Used for remote caching and displaying run links."
|
|
115
|
-
},
|
|
116
|
-
"nxCloudEncryptionKey": {
|
|
117
|
-
"type": "string",
|
|
118
|
-
"description": "Specifies the encryption key used to encrypt artifacts data before sending it to nx cloud."
|
|
119
|
-
},
|
|
120
|
-
"neverConnectToCloud": {
|
|
121
|
-
"type": "boolean",
|
|
122
|
-
"description": "Setting this to true will cause all attempts to connect your workspace to Nx Cloud to fail. This value does not prevent using Nx Cloud if already connected. Use NX_NO_CLOUD=true env var to prevent using Nx Cloud when running commands."
|
|
123
|
-
},
|
|
124
|
-
"parallel": {
|
|
125
|
-
"type": "number",
|
|
126
|
-
"description": "Specifies how many tasks are ran in parallel by Nx for the default tasks runner."
|
|
127
|
-
},
|
|
128
|
-
"cacheDirectory": {
|
|
129
|
-
"type": "string",
|
|
130
|
-
"description": "Specifies the default location of the cache directory."
|
|
131
|
-
},
|
|
132
|
-
"useDaemonProcess": {
|
|
133
|
-
"type": "boolean",
|
|
134
|
-
"description": "Specifies whether the daemon should be used for the default tasks runner."
|
|
135
|
-
},
|
|
136
|
-
"useInferencePlugins": {
|
|
137
|
-
"type": "boolean",
|
|
138
|
-
"description": "Specifies whether to add inference plugins when generating new projects."
|
|
139
|
-
},
|
|
140
|
-
"release": {
|
|
141
|
-
"type": "object",
|
|
142
|
-
"description": "Configuration for the nx release commands.",
|
|
143
|
-
"additionalProperties": false,
|
|
144
|
-
"properties": {
|
|
145
|
-
"projects": {
|
|
146
|
-
"oneOf": [
|
|
147
|
-
{
|
|
148
|
-
"type": "string",
|
|
149
|
-
"description": "A project name"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"type": "array",
|
|
153
|
-
"description": "An array of project names",
|
|
154
|
-
"minItems": 1,
|
|
155
|
-
"items": {
|
|
156
|
-
"type": "string"
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
]
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "https://nx.dev/reference/nx-json",
|
|
4
|
+
"title": "JSON schema for Nx configuration",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"implicitDependencies": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"description": "Map of files to projects that implicitly depend on them.",
|
|
10
|
+
"deprecated": "Use named inputs instead. See https://nx.dev/deprecated/global-implicit-dependencies"
|
|
160
11
|
},
|
|
161
|
-
"
|
|
162
|
-
"type": "object",
|
|
163
|
-
"additionalProperties": {
|
|
12
|
+
"affected": {
|
|
164
13
|
"type": "object",
|
|
14
|
+
"description": "Default options for `nx affected`.",
|
|
165
15
|
"properties": {
|
|
166
|
-
|
|
167
|
-
"type": "string",
|
|
168
|
-
"enum": ["fixed", "independent"]
|
|
169
|
-
},
|
|
170
|
-
"projects": {
|
|
171
|
-
"oneOf": [
|
|
172
|
-
{
|
|
16
|
+
"defaultBase": {
|
|
173
17
|
"type": "string",
|
|
174
|
-
"description": "
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"type": "array",
|
|
178
|
-
"description": "An array of project names",
|
|
179
|
-
"minItems": 1,
|
|
180
|
-
"items": {
|
|
181
|
-
"type": "string"
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
]
|
|
185
|
-
},
|
|
186
|
-
"version": {
|
|
187
|
-
"$ref": "#/definitions/NxReleaseGroupVersionConfiguration"
|
|
188
|
-
},
|
|
189
|
-
"changelog": {
|
|
190
|
-
"oneOf": [
|
|
191
|
-
{
|
|
192
|
-
"$ref": "#/definitions/NxReleaseChangelogConfiguration"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"type": "boolean"
|
|
196
|
-
}
|
|
197
|
-
]
|
|
198
|
-
},
|
|
199
|
-
"releaseTagPattern": {
|
|
200
|
-
"type": "string",
|
|
201
|
-
"description": "Optionally override the git/release tag pattern to use for this group."
|
|
202
|
-
},
|
|
203
|
-
"releaseTagPatternCheckAllBranchesWhen": {
|
|
204
|
-
"oneOf": [
|
|
205
|
-
{
|
|
206
|
-
"type": "boolean"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"type": "array",
|
|
210
|
-
"items": {
|
|
211
|
-
"type": "string"
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
],
|
|
215
|
-
"description": "By default, we will try and resolve the latest match for the releaseTagPattern from the current branch, falling back to all branches if no match is found on the current branch. Setting this to true will cause us to ALWAYS check all branches for the latest match. Setting it to false will cause us to ONLY check the current branch for the latest match. Setting it to an array of strings will cause us to check all branches WHEN the current branch is one of the strings in the array. Glob patterns are supported."
|
|
216
|
-
},
|
|
217
|
-
"releaseTagPatternRequireSemver": {
|
|
218
|
-
"type": "boolean",
|
|
219
|
-
"description": "Whether to require semver to be used for the release tag pattern. If set to false, the release tag pattern will not be checked for semver compliance."
|
|
220
|
-
},
|
|
221
|
-
"releaseTagPatternPreferDockerVersion": {
|
|
222
|
-
"type": ["boolean", "string"],
|
|
223
|
-
"enum": [true, false, "both"],
|
|
224
|
-
"description": "Controls how docker versions are used relative to semver versions when creating git tags and changelog entries. Set to true to use only the docker version, false to use only the semver version, or 'both' to create tags and changelog entries for both docker and semver versions. By default, this is set to true when docker configuration is present, and false otherwise."
|
|
225
|
-
},
|
|
226
|
-
"releaseTagPatternStrictPreid": {
|
|
227
|
-
"$ref": "#/definitions/NxReleaseReleaseTagPatternStrictPreidConfiguration"
|
|
228
|
-
},
|
|
229
|
-
"versionPlans": {
|
|
230
|
-
"oneOf": [
|
|
231
|
-
{
|
|
232
|
-
"$ref": "#/definitions/NxReleaseVersionPlansConfiguration"
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"type": "boolean",
|
|
236
|
-
"description": "Enables using version plans as a specifier source for versioning and to determine changes for changelog generation."
|
|
237
|
-
}
|
|
238
|
-
]
|
|
239
|
-
},
|
|
240
|
-
"docker": {
|
|
241
|
-
"oneOf": [
|
|
242
|
-
{
|
|
243
|
-
"type": "boolean",
|
|
244
|
-
"enum": [true],
|
|
245
|
-
"description": "Enable docker configuration with default settings. Warning: Docker support is experimental. Breaking changes may occur and not adhere to semver versioning. "
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"$ref": "#/definitions/NxReleaseGroupDockerConfiguration"
|
|
249
|
-
}
|
|
250
|
-
]
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
"required": ["projects"]
|
|
254
|
-
}
|
|
255
|
-
},
|
|
256
|
-
"changelog": {
|
|
257
|
-
"type": "object",
|
|
258
|
-
"properties": {
|
|
259
|
-
"workspaceChangelog": {
|
|
260
|
-
"oneOf": [
|
|
261
|
-
{
|
|
262
|
-
"$ref": "#/definitions/NxReleaseChangelogConfiguration"
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
"type": "boolean"
|
|
266
|
-
}
|
|
267
|
-
]
|
|
268
|
-
},
|
|
269
|
-
"projectChangelogs": {
|
|
270
|
-
"oneOf": [
|
|
271
|
-
{
|
|
272
|
-
"$ref": "#/definitions/NxReleaseChangelogConfiguration"
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
"type": "boolean"
|
|
18
|
+
"description": "Default based branch used by affected commands."
|
|
276
19
|
}
|
|
277
|
-
]
|
|
278
|
-
},
|
|
279
|
-
"automaticFromRef": {
|
|
280
|
-
"type": "boolean",
|
|
281
|
-
"description": "Whether or not to automatically look up the first commit for the workspace (or package, if versioning independently) and use that as the starting point for changelog generation. If this is not enabled, changelog generation will fail if there is no previous matching git tag to use as a starting point."
|
|
282
20
|
},
|
|
283
|
-
"
|
|
284
|
-
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
"conventionalCommits": {
|
|
289
|
-
"$ref": "#/definitions/NxReleaseConventionalCommitsConfiguration"
|
|
21
|
+
"additionalProperties": false,
|
|
22
|
+
"deprecated": "Use `defaultBase` instead. Support for setting `defaultBase` in `affected` will be removed in Nx 20."
|
|
290
23
|
},
|
|
291
|
-
"
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
},
|
|
295
|
-
"git": {
|
|
296
|
-
"$ref": "#/definitions/NxReleaseGitConfiguration"
|
|
24
|
+
"extends": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "Specifies the base config to extend."
|
|
297
27
|
},
|
|
298
|
-
"
|
|
299
|
-
|
|
28
|
+
"defaultBase": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "Default --base used by affected logic."
|
|
300
31
|
},
|
|
301
|
-
"
|
|
302
|
-
|
|
303
|
-
{
|
|
304
|
-
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
"type": "boolean",
|
|
308
|
-
"description": "Enables using version plans as a specifier source for versioning and to determine changes for changelog generation."
|
|
32
|
+
"tasksRunnerOptions": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"additionalProperties": {
|
|
35
|
+
"$ref": "#/definitions/tasksRunnerOptions"
|
|
309
36
|
}
|
|
310
|
-
]
|
|
311
37
|
},
|
|
312
|
-
"
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
"oneOf": [
|
|
318
|
-
{
|
|
319
|
-
"type": "boolean"
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
"type": "array",
|
|
323
|
-
"items": {
|
|
324
|
-
"type": "string"
|
|
325
|
-
}
|
|
38
|
+
"namedInputs": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"description": "Named inputs used by inputs defined in targets",
|
|
41
|
+
"additionalProperties": {
|
|
42
|
+
"$ref": "#/definitions/inputs"
|
|
326
43
|
}
|
|
327
|
-
],
|
|
328
|
-
"description": "By default, we will try and resolve the latest match for the releaseTagPattern from the current branch, falling back to all branches if no match is found on the current branch. Setting this to true will cause us to ALWAYS check all branches for the latest match. Setting it to false will cause us to ONLY check the current branch for the latest match. Setting it to an array of strings will cause us to check all branches WHEN the current branch is one of the strings in the array. Glob patterns are supported."
|
|
329
|
-
},
|
|
330
|
-
"releaseTagPatternRequireSemver": {
|
|
331
|
-
"type": "boolean",
|
|
332
|
-
"description": "Whether to require semver to be used for the release tag pattern. If set to false, the release tag pattern will not be checked for semver compliance."
|
|
333
44
|
},
|
|
334
|
-
"
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
"releaseTagPatternStrictPreid": {
|
|
340
|
-
"$ref": "#/definitions/NxReleaseReleaseTagPatternStrictPreidConfiguration"
|
|
341
|
-
},
|
|
342
|
-
"docker": {
|
|
343
|
-
"oneOf": [
|
|
344
|
-
{
|
|
345
|
-
"type": "boolean",
|
|
346
|
-
"enum": [true],
|
|
347
|
-
"description": "Enable docker configuration with default settings. Warning: Docker support is experimental. Breaking changes may occur and not adhere to semver versioning."
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"$ref": "#/definitions/NxReleaseDockerConfiguration"
|
|
45
|
+
"targetDefaults": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"description": "Target defaults",
|
|
48
|
+
"additionalProperties": {
|
|
49
|
+
"$ref": "#/definitions/targetDefaultsConfig"
|
|
351
50
|
}
|
|
352
|
-
]
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
},
|
|
356
|
-
"sync": {
|
|
357
|
-
"type": "object",
|
|
358
|
-
"description": "Configuration for the `nx sync` command",
|
|
359
|
-
"properties": {
|
|
360
|
-
"globalGenerators": {
|
|
361
|
-
"type": "array",
|
|
362
|
-
"items": {
|
|
363
|
-
"type": "string"
|
|
364
|
-
},
|
|
365
|
-
"description": "List of workspace-wide sync generators to be run (not attached to targets)"
|
|
366
|
-
},
|
|
367
|
-
"generatorOptions": {
|
|
368
|
-
"type": "object",
|
|
369
|
-
"description": "Options for the sync generators.",
|
|
370
|
-
"additionalProperties": {
|
|
371
|
-
"type": "object"
|
|
372
|
-
}
|
|
373
51
|
},
|
|
374
|
-
"
|
|
375
|
-
"type": "boolean",
|
|
376
|
-
"description": "Whether to automatically apply sync generator changes when running tasks. If not set, the user will be prompted. If set to `true`, the user will not be prompted and the changes will be applied. If set to `false`, the user will not be prompted and the changes will not be applied."
|
|
377
|
-
},
|
|
378
|
-
"disabledTaskSyncGenerators": {
|
|
379
|
-
"type": "array",
|
|
380
|
-
"items": {
|
|
381
|
-
"type": "string"
|
|
382
|
-
},
|
|
383
|
-
"description": "List of registered task sync generators to disable."
|
|
384
|
-
}
|
|
385
|
-
},
|
|
386
|
-
"additionalProperties": false
|
|
387
|
-
}
|
|
388
|
-
},
|
|
389
|
-
"definitions": {
|
|
390
|
-
"inputs": {
|
|
391
|
-
"type": "array",
|
|
392
|
-
"items": {
|
|
393
|
-
"oneOf": [
|
|
394
|
-
{
|
|
395
|
-
"type": "string"
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
"type": "object",
|
|
399
|
-
"properties": {
|
|
400
|
-
"fileset": {
|
|
401
|
-
"type": "string",
|
|
402
|
-
"description": "A glob"
|
|
403
|
-
}
|
|
404
|
-
},
|
|
405
|
-
"additionalProperties": false
|
|
406
|
-
},
|
|
407
|
-
{
|
|
52
|
+
"workspaceLayout": {
|
|
408
53
|
"type": "object",
|
|
54
|
+
"description": "Where new apps + libs should be placed.",
|
|
409
55
|
"properties": {
|
|
410
|
-
|
|
411
|
-
"oneOf": [
|
|
412
|
-
{
|
|
56
|
+
"libsDir": {
|
|
413
57
|
"type": "string",
|
|
414
|
-
"description": "
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
"type": "
|
|
418
|
-
"description": "
|
|
419
|
-
"items": {
|
|
420
|
-
"type": "string"
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
]
|
|
424
|
-
},
|
|
425
|
-
"dependencies": {
|
|
426
|
-
"type": "boolean",
|
|
427
|
-
"description": "Include files belonging to the input for all the project dependencies of this target."
|
|
428
|
-
},
|
|
429
|
-
"input": {
|
|
430
|
-
"type": "string",
|
|
431
|
-
"description": "The name of the input."
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
|
-
"oneOf": [
|
|
435
|
-
{
|
|
436
|
-
"required": ["projects", "input"]
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
"required": ["dependencies", "input"]
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
"required": ["input"],
|
|
443
|
-
"not": {
|
|
444
|
-
"anyOf": [
|
|
445
|
-
{
|
|
446
|
-
"required": ["projects"]
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
"required": ["dependencies"]
|
|
450
|
-
}
|
|
451
|
-
]
|
|
58
|
+
"description": "Default folder name for libs."
|
|
59
|
+
},
|
|
60
|
+
"appsDir": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "Default folder name for apps."
|
|
452
63
|
}
|
|
453
|
-
}
|
|
454
|
-
],
|
|
455
|
-
"additionalProperties": false
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
"type": "object",
|
|
459
|
-
"properties": {
|
|
460
|
-
"runtime": {
|
|
461
|
-
"type": "string",
|
|
462
|
-
"description": "The command that will be executed and the results of which is added to the hash"
|
|
463
|
-
}
|
|
464
|
-
},
|
|
465
|
-
"additionalProperties": false
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
"type": "object",
|
|
469
|
-
"properties": {
|
|
470
|
-
"env": {
|
|
471
|
-
"type": "string",
|
|
472
|
-
"description": "The name of the env var which value is added to the hash"
|
|
473
|
-
}
|
|
474
64
|
},
|
|
475
65
|
"additionalProperties": false
|
|
476
|
-
|
|
477
|
-
|
|
66
|
+
},
|
|
67
|
+
"cli": {
|
|
68
|
+
"$ref": "#/definitions/cliOptions"
|
|
69
|
+
},
|
|
70
|
+
"generators": {
|
|
71
|
+
"$ref": "#/definitions/generatorOptions"
|
|
72
|
+
},
|
|
73
|
+
"plugins": {
|
|
74
|
+
"type": "array",
|
|
75
|
+
"description": "Plugins for extending the project graph.",
|
|
76
|
+
"items": {
|
|
77
|
+
"$ref": "#/definitions/plugins"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"tui": {
|
|
478
81
|
"type": "object",
|
|
82
|
+
"description": "Settings for the Nx Terminal User Interface (TUI)",
|
|
479
83
|
"properties": {
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
84
|
+
"enabled": {
|
|
85
|
+
"type": "boolean",
|
|
86
|
+
"description": "Whether to enable the Terminal UI whenever possible (based on the current environment and terminal).",
|
|
87
|
+
"default": true
|
|
484
88
|
},
|
|
485
|
-
"
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
"transitive": {
|
|
498
|
-
"type": "boolean",
|
|
499
|
-
"description": "Whether the check for outputs should be recursive or stop at the first level of dependencies."
|
|
500
|
-
}
|
|
89
|
+
"autoExit": {
|
|
90
|
+
"oneOf": [
|
|
91
|
+
{
|
|
92
|
+
"type": "boolean"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "number"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"description": "Whether to exit the TUI automatically after all tasks finish. If set to `true`, the TUI will exit immediately. If set to `false` the TUI will not automatically exit. If set to a number, an interruptible countdown popup will be shown for that many seconds before the TUI exits.",
|
|
99
|
+
"default": 3
|
|
100
|
+
}
|
|
501
101
|
},
|
|
502
|
-
"required": ["dependentTasksOutputFiles"],
|
|
503
102
|
"additionalProperties": false
|
|
504
|
-
}
|
|
505
|
-
]
|
|
506
|
-
}
|
|
507
|
-
},
|
|
508
|
-
"cliOptions": {
|
|
509
|
-
"type": "object",
|
|
510
|
-
"description": "Default generator collection.",
|
|
511
|
-
"properties": {
|
|
512
|
-
"packageManager": {
|
|
513
|
-
"type": "string",
|
|
514
|
-
"description": "The default package manager to use.",
|
|
515
|
-
"enum": ["yarn", "pnpm", "npm", "bun"]
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
},
|
|
519
|
-
"generatorOptions": {
|
|
520
|
-
"type": "object",
|
|
521
|
-
"description": "List of default values used by generators."
|
|
522
|
-
},
|
|
523
|
-
"tasksRunnerOptions": {
|
|
524
|
-
"type": "object",
|
|
525
|
-
"description": "Available Task Runners.",
|
|
526
|
-
"properties": {
|
|
527
|
-
"runner": {
|
|
528
|
-
"type": "string",
|
|
529
|
-
"description": "Path to resolve the runner."
|
|
530
103
|
},
|
|
531
|
-
"
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
"properties": {
|
|
535
|
-
"accessToken": {
|
|
536
|
-
"type": "string"
|
|
537
|
-
},
|
|
538
|
-
"nxCloudId": {
|
|
539
|
-
"type": "string"
|
|
540
|
-
},
|
|
541
|
-
"captureStderr": {
|
|
542
|
-
"type": "boolean",
|
|
543
|
-
"description": "Defines whether the cache captures stderr or just stdout."
|
|
544
|
-
},
|
|
545
|
-
"parallel": {
|
|
546
|
-
"type": "number",
|
|
547
|
-
"description": "Defines the max number of targets ran in parallel."
|
|
548
|
-
},
|
|
549
|
-
"cacheableOperations": {
|
|
550
|
-
"type": "array",
|
|
551
|
-
"description": "Defines the list of targets/operations that are cached by Nx.",
|
|
552
|
-
"items": {
|
|
553
|
-
"type": "string"
|
|
554
|
-
}
|
|
555
|
-
},
|
|
556
|
-
"cacheDirectory": {
|
|
557
|
-
"type": "string",
|
|
558
|
-
"description": "Defines where the local cache is stored."
|
|
559
|
-
},
|
|
560
|
-
"skipNxCache": {
|
|
561
|
-
"type": "boolean",
|
|
562
|
-
"description": "Defines whether the Nx Cache should be skipped."
|
|
563
|
-
},
|
|
564
|
-
"encryptionKey": {
|
|
565
|
-
"type": "string",
|
|
566
|
-
"description": "Defines an encryption key to support end-to-end encryption of your cloud cache. You may also provide an environment variable with the key NX_CLOUD_ENCRYPTION_KEY that contains an encryption key as its value. The Nx Cloud task runner normalizes the key length, so any length of key is acceptable."
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
},
|
|
571
|
-
"additionalProperties": false
|
|
572
|
-
},
|
|
573
|
-
"targetDefaultsConfig": {
|
|
574
|
-
"type": "object",
|
|
575
|
-
"description": "Target defaults",
|
|
576
|
-
"properties": {
|
|
577
|
-
"executor": {
|
|
578
|
-
"description": "The function that Nx will invoke when you run this target",
|
|
579
|
-
"type": "string"
|
|
104
|
+
"defaultProject": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"description": "Default project. When project isn't provided, the default project will be used."
|
|
580
107
|
},
|
|
581
|
-
"
|
|
582
|
-
|
|
108
|
+
"nxCloudAccessToken": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"description": "The access token to use for nx-cloud. If set, the default tasks runner will be nx-cloud."
|
|
583
111
|
},
|
|
584
|
-
"
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
"type": "string"
|
|
588
|
-
}
|
|
112
|
+
"nxCloudUrl": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"description": "Specifies the url pointing to an instance of nx cloud. Used for remote caching and displaying run links."
|
|
589
115
|
},
|
|
590
|
-
"
|
|
591
|
-
|
|
592
|
-
|
|
116
|
+
"nxCloudEncryptionKey": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"description": "Specifies the encryption key used to encrypt artifacts data before sending it to nx cloud."
|
|
593
119
|
},
|
|
594
|
-
"
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
"additionalProperties": {
|
|
598
|
-
"type": "object"
|
|
599
|
-
}
|
|
120
|
+
"neverConnectToCloud": {
|
|
121
|
+
"type": "boolean",
|
|
122
|
+
"description": "Setting this to true will cause all attempts to connect your workspace to Nx Cloud to fail. This value does not prevent using Nx Cloud if already connected. Use NX_NO_CLOUD=true env var to prevent using Nx Cloud when running commands."
|
|
600
123
|
},
|
|
601
|
-
"
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
"description": "Whether this target runs continuously until stopped"
|
|
124
|
+
"parallel": {
|
|
125
|
+
"type": "number",
|
|
126
|
+
"description": "Specifies how many tasks are ran in parallel by Nx for the default tasks runner."
|
|
605
127
|
},
|
|
606
|
-
"
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
"description": "Whether this target can be run in parallel with other tasks"
|
|
128
|
+
"cacheDirectory": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"description": "Specifies the default location of the cache directory."
|
|
610
131
|
},
|
|
611
|
-
"
|
|
612
|
-
|
|
132
|
+
"useDaemonProcess": {
|
|
133
|
+
"type": "boolean",
|
|
134
|
+
"description": "Specifies whether the daemon should be used for the default tasks runner."
|
|
613
135
|
},
|
|
614
|
-
"
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
"
|
|
624
|
-
"projects": {
|
|
136
|
+
"useInferencePlugins": {
|
|
137
|
+
"type": "boolean",
|
|
138
|
+
"description": "Specifies whether to add inference plugins when generating new projects."
|
|
139
|
+
},
|
|
140
|
+
"release": {
|
|
141
|
+
"type": "object",
|
|
142
|
+
"description": "Configuration for the nx release commands.",
|
|
143
|
+
"additionalProperties": false,
|
|
144
|
+
"properties": {
|
|
145
|
+
"projects": {
|
|
625
146
|
"oneOf": [
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
147
|
+
{
|
|
148
|
+
"type": "string",
|
|
149
|
+
"description": "A project name"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "array",
|
|
153
|
+
"description": "An array of project names",
|
|
154
|
+
"minItems": 1,
|
|
155
|
+
"items": {
|
|
156
|
+
"type": "string"
|
|
157
|
+
}
|
|
636
158
|
}
|
|
637
|
-
}
|
|
638
159
|
]
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
"type": "
|
|
642
|
-
|
|
643
|
-
|
|
160
|
+
},
|
|
161
|
+
"groups": {
|
|
162
|
+
"type": "object",
|
|
163
|
+
"additionalProperties": {
|
|
164
|
+
"type": "object",
|
|
165
|
+
"properties": {
|
|
166
|
+
"projectsRelationship": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"enum": ["fixed", "independent"]
|
|
169
|
+
},
|
|
170
|
+
"projects": {
|
|
171
|
+
"oneOf": [
|
|
172
|
+
{
|
|
173
|
+
"type": "string",
|
|
174
|
+
"description": "A project name"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"type": "array",
|
|
178
|
+
"description": "An array of project names",
|
|
179
|
+
"minItems": 1,
|
|
180
|
+
"items": {
|
|
181
|
+
"type": "string"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
"version": {
|
|
187
|
+
"$ref": "#/definitions/NxReleaseGroupVersionConfiguration"
|
|
188
|
+
},
|
|
189
|
+
"changelog": {
|
|
190
|
+
"oneOf": [
|
|
191
|
+
{
|
|
192
|
+
"$ref": "#/definitions/NxReleaseChangelogConfiguration"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"type": "boolean"
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
"releaseTag": {
|
|
200
|
+
"type": "object",
|
|
201
|
+
"description": "Configuration for release tag generation and matching.",
|
|
202
|
+
"properties": {
|
|
203
|
+
"pattern": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"description": "Optionally override the git/release tag pattern to use for this group."
|
|
206
|
+
},
|
|
207
|
+
"checkAllBranchesWhen": {
|
|
208
|
+
"oneOf": [
|
|
209
|
+
{
|
|
210
|
+
"type": "boolean"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"type": "array",
|
|
214
|
+
"items": {
|
|
215
|
+
"type": "string"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"description": "By default, we will try and resolve the latest match for the releaseTagPattern from the current branch, falling back to all branches if no match is found on the current branch. Setting this to true will cause us to ALWAYS check all branches for the latest match. Setting it to false will cause us to ONLY check the current branch for the latest match. Setting it to an array of strings will cause us to check all branches WHEN the current branch is one of the strings in the array. Glob patterns are supported."
|
|
220
|
+
},
|
|
221
|
+
"requireSemver": {
|
|
222
|
+
"type": "boolean",
|
|
223
|
+
"description": "Whether to require semver to be used for the release tag pattern. If set to false, the release tag pattern will not be checked for semver compliance."
|
|
224
|
+
},
|
|
225
|
+
"preferDockerVersion": {
|
|
226
|
+
"type": ["boolean", "string"],
|
|
227
|
+
"enum": [true, false, "both"],
|
|
228
|
+
"description": "Controls how docker versions are used relative to semver versions when creating git tags and changelog entries. Set to true to use only the docker version, false to use only the semver version, or 'both' to create tags and changelog entries for both docker and semver versions. By default, this is set to true when docker configuration is present, and false otherwise."
|
|
229
|
+
},
|
|
230
|
+
"strictPreid": {
|
|
231
|
+
"$ref": "#/definitions/NxReleaseReleaseTagPatternStrictPreidConfiguration"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"additionalProperties": false
|
|
235
|
+
},
|
|
236
|
+
"releaseTagPattern": {
|
|
237
|
+
"type": "string",
|
|
238
|
+
"description": "DEPRECATED: Use releaseTag.pattern instead. Will be removed in Nx 23."
|
|
239
|
+
},
|
|
240
|
+
"releaseTagPatternCheckAllBranchesWhen": {
|
|
241
|
+
"oneOf": [
|
|
242
|
+
{
|
|
243
|
+
"type": "boolean"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"type": "array",
|
|
247
|
+
"items": {
|
|
248
|
+
"type": "string"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
],
|
|
252
|
+
"description": "DEPRECATED: Use releaseTag.checkAllBranchesWhen instead. Will be removed in Nx 23."
|
|
253
|
+
},
|
|
254
|
+
"releaseTagPatternRequireSemver": {
|
|
255
|
+
"type": "boolean",
|
|
256
|
+
"description": "DEPRECATED: Use releaseTag.requireSemver instead. Will be removed in Nx 23."
|
|
257
|
+
},
|
|
258
|
+
"releaseTagPatternPreferDockerVersion": {
|
|
259
|
+
"type": ["boolean", "string"],
|
|
260
|
+
"enum": [true, false, "both"],
|
|
261
|
+
"description": "DEPRECATED: Use releaseTag.preferDockerVersion instead. Will be removed in Nx 23."
|
|
262
|
+
},
|
|
263
|
+
"releaseTagPatternStrictPreid": {
|
|
264
|
+
"$ref": "#/definitions/NxReleaseReleaseTagPatternStrictPreidConfiguration",
|
|
265
|
+
"description": "DEPRECATED: Use releaseTag.strictPreid instead. Will be removed in Nx 23."
|
|
266
|
+
},
|
|
267
|
+
"versionPlans": {
|
|
268
|
+
"oneOf": [
|
|
269
|
+
{
|
|
270
|
+
"$ref": "#/definitions/NxReleaseVersionPlansConfiguration"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"type": "boolean",
|
|
274
|
+
"description": "Enables using version plans as a specifier source for versioning and to determine changes for changelog generation."
|
|
275
|
+
}
|
|
276
|
+
]
|
|
277
|
+
},
|
|
278
|
+
"docker": {
|
|
279
|
+
"oneOf": [
|
|
280
|
+
{
|
|
281
|
+
"type": "boolean",
|
|
282
|
+
"enum": [true],
|
|
283
|
+
"description": "Enable docker configuration with default settings. Warning: Docker support is experimental. Breaking changes may occur and not adhere to semver versioning. "
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"$ref": "#/definitions/NxReleaseGroupDockerConfiguration"
|
|
287
|
+
}
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"required": ["projects"]
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"changelog": {
|
|
295
|
+
"type": "object",
|
|
296
|
+
"properties": {
|
|
297
|
+
"workspaceChangelog": {
|
|
298
|
+
"oneOf": [
|
|
299
|
+
{
|
|
300
|
+
"$ref": "#/definitions/NxReleaseChangelogConfiguration"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"type": "boolean"
|
|
304
|
+
}
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
"projectChangelogs": {
|
|
308
|
+
"oneOf": [
|
|
309
|
+
{
|
|
310
|
+
"$ref": "#/definitions/NxReleaseChangelogConfiguration"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"type": "boolean"
|
|
314
|
+
}
|
|
315
|
+
]
|
|
316
|
+
},
|
|
317
|
+
"automaticFromRef": {
|
|
318
|
+
"type": "boolean",
|
|
319
|
+
"description": "Whether or not to automatically look up the first commit for the workspace (or package, if versioning independently) and use that as the starting point for changelog generation. If this is not enabled, changelog generation will fail if there is no previous matching git tag to use as a starting point."
|
|
320
|
+
},
|
|
321
|
+
"git": {
|
|
322
|
+
"$ref": "#/definitions/NxReleaseGitConfiguration"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
"conventionalCommits": {
|
|
327
|
+
"$ref": "#/definitions/NxReleaseConventionalCommitsConfiguration"
|
|
328
|
+
},
|
|
329
|
+
"projectsRelationship": {
|
|
644
330
|
"type": "string",
|
|
645
|
-
"
|
|
646
|
-
|
|
647
|
-
|
|
331
|
+
"enum": ["fixed", "independent"]
|
|
332
|
+
},
|
|
333
|
+
"git": {
|
|
334
|
+
"$ref": "#/definitions/NxReleaseGitConfiguration"
|
|
335
|
+
},
|
|
336
|
+
"version": {
|
|
337
|
+
"$ref": "#/definitions/NxReleaseVersionConfiguration"
|
|
338
|
+
},
|
|
339
|
+
"versionPlans": {
|
|
340
|
+
"oneOf": [
|
|
341
|
+
{
|
|
342
|
+
"$ref": "#/definitions/NxReleaseVersionPlansConfiguration"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"type": "boolean",
|
|
346
|
+
"description": "Enables using version plans as a specifier source for versioning and to determine changes for changelog generation."
|
|
347
|
+
}
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
"releaseTag": {
|
|
351
|
+
"type": "object",
|
|
352
|
+
"description": "Configuration for release tag generation and matching.",
|
|
353
|
+
"properties": {
|
|
354
|
+
"pattern": {
|
|
355
|
+
"type": "string",
|
|
356
|
+
"description": "Optionally override the git/release tag pattern to use. This field is the source of truth for changelog generation and release tagging, as well as for conventional commits parsing. It supports interpolating the version as {version} and (if releasing independently or forcing project level version control system releases) the project name as {projectName} within the string. The default releaseTagPattern for fixed/unified releases is: \"v{version}\". The default releaseTagPattern for independent releases at the project level is: \"{projectName}@{version}\""
|
|
357
|
+
},
|
|
358
|
+
"checkAllBranchesWhen": {
|
|
359
|
+
"oneOf": [
|
|
360
|
+
{
|
|
361
|
+
"type": "boolean"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"type": "array",
|
|
365
|
+
"items": {
|
|
366
|
+
"type": "string"
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
],
|
|
370
|
+
"description": "By default, we will try and resolve the latest match for the releaseTagPattern from the current branch, falling back to all branches if no match is found on the current branch. Setting this to true will cause us to ALWAYS check all branches for the latest match. Setting it to false will cause us to ONLY check the current branch for the latest match. Setting it to an array of strings will cause us to check all branches WHEN the current branch is one of the strings in the array. Glob patterns are supported."
|
|
371
|
+
},
|
|
372
|
+
"requireSemver": {
|
|
373
|
+
"type": "boolean",
|
|
374
|
+
"description": "Whether to require semver to be used for the release tag pattern. If set to false, the release tag pattern will not be checked for semver compliance."
|
|
375
|
+
},
|
|
376
|
+
"preferDockerVersion": {
|
|
377
|
+
"type": ["boolean", "string"],
|
|
378
|
+
"enum": [true, false, "both"],
|
|
379
|
+
"description": "Controls how docker versions are used relative to semver versions when creating git tags and changelog entries. Set to true to use only the docker version, false to use only the semver version, or 'both' to create tags and changelog entries for both docker and semver versions. By default, this is set to true when docker configuration is present, and false otherwise."
|
|
380
|
+
},
|
|
381
|
+
"strictPreid": {
|
|
382
|
+
"$ref": "#/definitions/NxReleaseReleaseTagPatternStrictPreidConfiguration"
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"additionalProperties": false
|
|
386
|
+
},
|
|
387
|
+
"releaseTagPattern": {
|
|
648
388
|
"type": "string",
|
|
649
|
-
"description": "
|
|
650
|
-
"enum": ["ignore", "forward"],
|
|
651
|
-
"default": "ignore"
|
|
652
|
-
}
|
|
389
|
+
"description": "DEPRECATED: Use releaseTag.pattern instead. Will be removed in Nx 23."
|
|
653
390
|
},
|
|
654
|
-
"
|
|
655
|
-
|
|
656
|
-
"required": ["projects", "target"]
|
|
657
|
-
},
|
|
658
|
-
{
|
|
659
|
-
"required": ["dependencies", "target"]
|
|
660
|
-
},
|
|
661
|
-
{
|
|
662
|
-
"required": ["target"],
|
|
663
|
-
"not": {
|
|
664
|
-
"anyOf": [
|
|
391
|
+
"releaseTagPatternCheckAllBranchesWhen": {
|
|
392
|
+
"oneOf": [
|
|
665
393
|
{
|
|
666
|
-
|
|
394
|
+
"type": "boolean"
|
|
667
395
|
},
|
|
668
396
|
{
|
|
669
|
-
|
|
397
|
+
"type": "array",
|
|
398
|
+
"items": {
|
|
399
|
+
"type": "string"
|
|
400
|
+
}
|
|
670
401
|
}
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
},
|
|
700
|
-
{
|
|
701
|
-
"type": "object",
|
|
702
|
-
"properties": {
|
|
703
|
-
"plugin": {
|
|
704
|
-
"type": "string",
|
|
705
|
-
"description": "The plugin module to load"
|
|
706
|
-
},
|
|
707
|
-
"options": {
|
|
708
|
-
"type": "object",
|
|
709
|
-
"description": "The options passed to the plugin when creating nodes and dependencies"
|
|
710
|
-
},
|
|
711
|
-
"include": {
|
|
712
|
-
"type": "array",
|
|
713
|
-
"description": "File patterns which are included by the plugin",
|
|
714
|
-
"items": {
|
|
715
|
-
"type": "string"
|
|
716
|
-
}
|
|
717
|
-
},
|
|
718
|
-
"exclude": {
|
|
719
|
-
"type": "array",
|
|
720
|
-
"description": "File patterns which are excluded by the plugin",
|
|
721
|
-
"items": {
|
|
722
|
-
"type": "string"
|
|
723
|
-
}
|
|
402
|
+
],
|
|
403
|
+
"description": "DEPRECATED: Use releaseTag.checkAllBranchesWhen instead. Will be removed in Nx 23."
|
|
404
|
+
},
|
|
405
|
+
"releaseTagPatternRequireSemver": {
|
|
406
|
+
"type": "boolean",
|
|
407
|
+
"description": "DEPRECATED: Use releaseTag.requireSemver instead. Will be removed in Nx 23."
|
|
408
|
+
},
|
|
409
|
+
"releaseTagPatternPreferDockerVersion": {
|
|
410
|
+
"type": ["boolean", "string"],
|
|
411
|
+
"enum": [true, false, "both"],
|
|
412
|
+
"description": "DEPRECATED: Use releaseTag.preferDockerVersion instead. Will be removed in Nx 23."
|
|
413
|
+
},
|
|
414
|
+
"releaseTagPatternStrictPreid": {
|
|
415
|
+
"$ref": "#/definitions/NxReleaseReleaseTagPatternStrictPreidConfiguration",
|
|
416
|
+
"description": "DEPRECATED: Use releaseTag.strictPreid instead. Will be removed in Nx 23."
|
|
417
|
+
},
|
|
418
|
+
"docker": {
|
|
419
|
+
"oneOf": [
|
|
420
|
+
{
|
|
421
|
+
"type": "boolean",
|
|
422
|
+
"enum": [true],
|
|
423
|
+
"description": "Enable docker configuration with default settings. Warning: Docker support is experimental. Breaking changes may occur and not adhere to semver versioning."
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"$ref": "#/definitions/NxReleaseDockerConfiguration"
|
|
427
|
+
}
|
|
428
|
+
]
|
|
429
|
+
}
|
|
724
430
|
}
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
]
|
|
728
|
-
},
|
|
729
|
-
"NxReleaseGitConfiguration": {
|
|
730
|
-
"type": "object",
|
|
731
|
-
"properties": {
|
|
732
|
-
"commit": {
|
|
733
|
-
"type": "boolean",
|
|
734
|
-
"description": "Whether or not to automatically commit the changes made by current command"
|
|
735
|
-
},
|
|
736
|
-
"commitMessage": {
|
|
737
|
-
"type": "string",
|
|
738
|
-
"description": "Custom git commit message to use when committing the changes made by this command"
|
|
739
|
-
},
|
|
740
|
-
"commitArgs": {
|
|
741
|
-
"type": ["string", "array"],
|
|
742
|
-
"description": "Additional arguments (added after the --message argument, which may or may not be customized with --git-commit-message) to pass to the `git commit` command invoked behind the scenes"
|
|
743
|
-
},
|
|
744
|
-
"stageChanges": {
|
|
745
|
-
"type": "boolean",
|
|
746
|
-
"description": "Whether or not to stage the changes made by this command. Always treated as true if commit is true."
|
|
747
|
-
},
|
|
748
|
-
"tag": {
|
|
749
|
-
"type": "boolean",
|
|
750
|
-
"description": "Whether or not to automatically tag the changes made by this command"
|
|
751
|
-
},
|
|
752
|
-
"tagMessage": {
|
|
753
|
-
"type": "string",
|
|
754
|
-
"description": "Custom git tag message to use when tagging the changes made by this command. This defaults to be the same value as the tag itself."
|
|
755
|
-
},
|
|
756
|
-
"tagArgs": {
|
|
757
|
-
"type": ["string", "array"],
|
|
758
|
-
"description": "Additional arguments to pass to the `git tag` command invoked behind the scenes"
|
|
759
|
-
},
|
|
760
|
-
"push": {
|
|
761
|
-
"type": "boolean",
|
|
762
|
-
"description": "Whether or not to automatically push the changes made by this command. This defaults to false"
|
|
763
|
-
},
|
|
764
|
-
"pushArgs": {
|
|
765
|
-
"type": ["string", "array"],
|
|
766
|
-
"description": "Additional arguments to pass to the `git push` command invoked behind the scenes"
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
},
|
|
770
|
-
"NxReleaseVersionConfiguration": {
|
|
771
|
-
"type": "object",
|
|
772
|
-
"description": "Configuration for the versioning phase of releases.",
|
|
773
|
-
"additionalProperties": false,
|
|
774
|
-
"properties": {
|
|
775
|
-
"conventionalCommits": {
|
|
776
|
-
"type": "boolean",
|
|
777
|
-
"description": "Shorthand for enabling the current version of projects to be resolved from git tags, and the next version to be determined by analyzing commit messages according to the Conventional Commits specification.",
|
|
778
|
-
"default": false
|
|
779
431
|
},
|
|
780
|
-
"
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
"
|
|
799
|
-
"description": "Path to the directory containing a manifest file to update. Supports placeholders like {projectRoot} and {projectName}."
|
|
800
|
-
},
|
|
801
|
-
{
|
|
802
|
-
"type": "object",
|
|
803
|
-
"properties": {
|
|
804
|
-
"path": {
|
|
805
|
-
"type": "string",
|
|
806
|
-
"description": "Path to the directory containing a manifest file to update. Supports placeholders like {projectRoot} and {projectName}."
|
|
807
|
-
},
|
|
808
|
-
"preserveLocalDependencyProtocols": {
|
|
432
|
+
"sync": {
|
|
433
|
+
"type": "object",
|
|
434
|
+
"description": "Configuration for the `nx sync` command",
|
|
435
|
+
"properties": {
|
|
436
|
+
"globalGenerators": {
|
|
437
|
+
"type": "array",
|
|
438
|
+
"items": {
|
|
439
|
+
"type": "string"
|
|
440
|
+
},
|
|
441
|
+
"description": "List of workspace-wide sync generators to be run (not attached to targets)"
|
|
442
|
+
},
|
|
443
|
+
"generatorOptions": {
|
|
444
|
+
"type": "object",
|
|
445
|
+
"description": "Options for the sync generators.",
|
|
446
|
+
"additionalProperties": {
|
|
447
|
+
"type": "object"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
"applyChanges": {
|
|
809
451
|
"type": "boolean",
|
|
810
|
-
"description": "Whether to
|
|
811
|
-
"default": true
|
|
812
|
-
}
|
|
452
|
+
"description": "Whether to automatically apply sync generator changes when running tasks. If not set, the user will be prompted. If set to `true`, the user will not be prompted and the changes will be applied. If set to `false`, the user will not be prompted and the changes will not be applied."
|
|
813
453
|
},
|
|
814
|
-
"
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
"enum": ["registry", "disk", "git-tag", "none"],
|
|
824
|
-
"description": "The resolver to use for determining the current version of a project during versioning. This is needed for versioning approaches which involve relatively modifying a current version to arrive at a new version, such as semver bumps like 'patch', 'minor' etc. Using 'none' explicitly declares that the current version is not needed to compute the new version, and should only be used with appropriate version actions implementations that support it."
|
|
825
|
-
},
|
|
826
|
-
"currentVersionResolverMetadata": {
|
|
827
|
-
"type": "object",
|
|
828
|
-
"additionalProperties": true,
|
|
829
|
-
"description": "Metadata to provide to the configured currentVersionResolver to help it in determining the current version. What to pass here is specific to each resolver."
|
|
830
|
-
},
|
|
831
|
-
"fallbackCurrentVersionResolver": {
|
|
832
|
-
"type": "string",
|
|
833
|
-
"enum": ["disk"],
|
|
834
|
-
"description": "The fallback version resolver to use when the configured currentVersionResolver fails to resolve the current version."
|
|
835
|
-
},
|
|
836
|
-
"versionPrefix": {
|
|
837
|
-
"type": "string",
|
|
838
|
-
"enum": ["auto", "", "~", "^", "="],
|
|
839
|
-
"default": "auto",
|
|
840
|
-
"description": "The prefix to use when versioning dependencies. This can be one of the following: auto, '', '~', '^', '=', where auto means the existing prefix will be preserved."
|
|
841
|
-
},
|
|
842
|
-
"deleteVersionPlans": {
|
|
843
|
-
"type": "boolean",
|
|
844
|
-
"description": "Whether to delete the processed version plans file after versioning is complete. This is false by default because the version plans are also needed for changelog generation.",
|
|
845
|
-
"default": false
|
|
846
|
-
},
|
|
847
|
-
"updateDependents": {
|
|
848
|
-
"type": "string",
|
|
849
|
-
"enum": ["never", "auto", "always"],
|
|
850
|
-
"default": "auto",
|
|
851
|
-
"description": "When versioning independent projects, this controls whether to update their dependents (i.e. the things that depend on them). 'never' means no dependents will be updated (unless they happen to be versioned directly as well). 'auto' is the default and will cause dependents to be updated (a patch version bump) when a dependency is versioned, as long as a group or projects filter is not applied that does not include them. 'always' will cause dependents to be updated (a patch version bump) when a dependency is versioned, even if they are not included in the group or projects filter."
|
|
852
|
-
},
|
|
853
|
-
"logUnchangedProjects": {
|
|
854
|
-
"type": "boolean",
|
|
855
|
-
"description": "Whether to log projects that have not changed during versioning.",
|
|
856
|
-
"default": true
|
|
857
|
-
},
|
|
858
|
-
"preserveLocalDependencyProtocols": {
|
|
859
|
-
"type": "boolean",
|
|
860
|
-
"description": "Whether to preserve local dependency protocols (e.g. file references, or the `workspace:` protocol in package.json files) of local dependencies when updating them during versioning.",
|
|
861
|
-
"default": true
|
|
862
|
-
},
|
|
863
|
-
"preserveMatchingDependencyRanges": {
|
|
864
|
-
"type": ["boolean", "array"],
|
|
865
|
-
"description": "Whether to preserve matching dependency ranges when updating them during versioning. This is false by default. (e.g. The new version will be '1.2.0' and the current version range in dependents is already '^1.0.0'. Therefore, the manifest file is not updated.)",
|
|
866
|
-
"default": false,
|
|
867
|
-
"items": {
|
|
868
|
-
"type": "string",
|
|
869
|
-
"enum": [
|
|
870
|
-
"dependencies",
|
|
871
|
-
"devDependencies",
|
|
872
|
-
"peerDependencies",
|
|
873
|
-
"optionalDependencies"
|
|
874
|
-
]
|
|
875
|
-
}
|
|
454
|
+
"disabledTaskSyncGenerators": {
|
|
455
|
+
"type": "array",
|
|
456
|
+
"items": {
|
|
457
|
+
"type": "string"
|
|
458
|
+
},
|
|
459
|
+
"description": "List of registered task sync generators to disable."
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"additionalProperties": false
|
|
876
463
|
},
|
|
877
|
-
"
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
464
|
+
"conformance": {
|
|
465
|
+
"type": "object",
|
|
466
|
+
"description": "Configuration for Nx Conformance",
|
|
467
|
+
"properties": {
|
|
468
|
+
"outputPath": {
|
|
469
|
+
"oneOf": [
|
|
470
|
+
{
|
|
471
|
+
"type": "string",
|
|
472
|
+
"description": "Path to write the conformance results to"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"type": "boolean",
|
|
476
|
+
"enum": [false],
|
|
477
|
+
"description": "Disable writing the conformance results to a file"
|
|
478
|
+
}
|
|
479
|
+
],
|
|
480
|
+
"description": "Optional path to write the conformance results to, defaults to 'dist/conformance-result.json'. Set to false to disable writing the conformance results to a file."
|
|
481
|
+
},
|
|
482
|
+
"rules": {
|
|
483
|
+
"type": "array",
|
|
484
|
+
"description": "List of conformance rules to apply",
|
|
485
|
+
"items": {
|
|
486
|
+
"type": "object",
|
|
487
|
+
"properties": {
|
|
488
|
+
"rule": {
|
|
489
|
+
"type": "string",
|
|
490
|
+
"description": "Relative path to a local rule implementation, node_module path or nx-cloud rule ID for Nx Cloud Enterprise."
|
|
491
|
+
},
|
|
492
|
+
"options": {
|
|
493
|
+
"type": "object",
|
|
494
|
+
"description": "Rule specific configuration options.",
|
|
495
|
+
"additionalProperties": true
|
|
496
|
+
},
|
|
497
|
+
"projects": {
|
|
498
|
+
"type": "array",
|
|
499
|
+
"description": "The projects to apply this rule to. This property accepts an array of strings which can be project names, glob patterns, directories, tag references or anything else that is supported by the `--projects` filter. By default, the implied value is ['*'] (all projects). You can also use objects with 'matcher' and 'explanation' properties to document why specific projects are included or excluded.",
|
|
500
|
+
"items": {
|
|
501
|
+
"oneOf": [
|
|
502
|
+
{
|
|
503
|
+
"type": "string",
|
|
504
|
+
"description": "A project name, glob pattern, directory, tag reference, or any other valid project filter"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"type": "object",
|
|
508
|
+
"properties": {
|
|
509
|
+
"matcher": {
|
|
510
|
+
"type": "string",
|
|
511
|
+
"description": "A project name, glob pattern, directory, tag reference, or any other valid project filter"
|
|
512
|
+
},
|
|
513
|
+
"explanation": {
|
|
514
|
+
"type": "string",
|
|
515
|
+
"description": "An explanation to communicate to colleagues why this particular project or projects were included or excluded from the rule"
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
"required": ["matcher", "explanation"],
|
|
519
|
+
"additionalProperties": false
|
|
520
|
+
}
|
|
521
|
+
]
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
"explanation": {
|
|
525
|
+
"type": "string",
|
|
526
|
+
"description": "Optional explanation field for users to be able to communicate to their colleagues why a particular rule is enabled and important to the workspace in question."
|
|
527
|
+
},
|
|
528
|
+
"status": {
|
|
529
|
+
"type": "string",
|
|
530
|
+
"enum": ["enforced", "evaluated", "disabled"],
|
|
531
|
+
"description": "Override the default status of the rule, which is 'enforced'. If set to 'evaluated', the rule will be reported as normal, but not enforced (will exit with code 0). If set to 'disabled', the rule will not be evaluated at all.",
|
|
532
|
+
"default": "enforced"
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
"required": ["rule"],
|
|
536
|
+
"additionalProperties": false
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
"required": ["rules"],
|
|
541
|
+
"additionalProperties": false
|
|
886
542
|
}
|
|
887
|
-
}
|
|
888
543
|
},
|
|
889
|
-
"
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
544
|
+
"definitions": {
|
|
545
|
+
"inputs": {
|
|
546
|
+
"type": "array",
|
|
547
|
+
"items": {
|
|
548
|
+
"oneOf": [
|
|
549
|
+
{
|
|
550
|
+
"type": "string"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"type": "object",
|
|
554
|
+
"properties": {
|
|
555
|
+
"fileset": {
|
|
556
|
+
"type": "string",
|
|
557
|
+
"description": "A glob"
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
"additionalProperties": false
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"type": "object",
|
|
564
|
+
"properties": {
|
|
565
|
+
"projects": {
|
|
566
|
+
"oneOf": [
|
|
567
|
+
{
|
|
568
|
+
"type": "string",
|
|
569
|
+
"description": "The project that the targets belong to."
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"type": "array",
|
|
573
|
+
"description": "The projects that the targets belong to.",
|
|
574
|
+
"items": {
|
|
575
|
+
"type": "string"
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
]
|
|
579
|
+
},
|
|
580
|
+
"dependencies": {
|
|
581
|
+
"type": "boolean",
|
|
582
|
+
"description": "Include files belonging to the input for all the project dependencies of this target."
|
|
583
|
+
},
|
|
584
|
+
"input": {
|
|
585
|
+
"type": "string",
|
|
586
|
+
"description": "The name of the input."
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"oneOf": [
|
|
590
|
+
{
|
|
591
|
+
"required": ["projects", "input"]
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"required": ["dependencies", "input"]
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"required": ["input"],
|
|
598
|
+
"not": {
|
|
599
|
+
"anyOf": [
|
|
600
|
+
{
|
|
601
|
+
"required": ["projects"]
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"required": ["dependencies"]
|
|
605
|
+
}
|
|
606
|
+
]
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
],
|
|
610
|
+
"additionalProperties": false
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"type": "object",
|
|
614
|
+
"properties": {
|
|
615
|
+
"runtime": {
|
|
616
|
+
"type": "string",
|
|
617
|
+
"description": "The command that will be executed and the results of which is added to the hash"
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
"additionalProperties": false
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"type": "object",
|
|
624
|
+
"properties": {
|
|
625
|
+
"env": {
|
|
626
|
+
"type": "string",
|
|
627
|
+
"description": "The name of the env var which value is added to the hash"
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
"additionalProperties": false
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"type": "object",
|
|
634
|
+
"properties": {
|
|
635
|
+
"externalDependencies": {
|
|
636
|
+
"type": "array",
|
|
637
|
+
"items": {
|
|
638
|
+
"type": "string"
|
|
639
|
+
},
|
|
640
|
+
"description": "The list of external dependencies that our target depends on for `nx:run-commands` and community plugins."
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
"additionalProperties": false
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"type": "object",
|
|
647
|
+
"properties": {
|
|
648
|
+
"dependentTasksOutputFiles": {
|
|
649
|
+
"type": "string",
|
|
650
|
+
"description": "The glob list of output files that project depends on."
|
|
651
|
+
},
|
|
652
|
+
"transitive": {
|
|
653
|
+
"type": "boolean",
|
|
654
|
+
"description": "Whether the check for outputs should be recursive or stop at the first level of dependencies."
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
"required": ["dependentTasksOutputFiles"],
|
|
658
|
+
"additionalProperties": false
|
|
659
|
+
}
|
|
660
|
+
]
|
|
661
|
+
}
|
|
895
662
|
},
|
|
896
|
-
"
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
663
|
+
"cliOptions": {
|
|
664
|
+
"type": "object",
|
|
665
|
+
"description": "Default generator collection.",
|
|
666
|
+
"properties": {
|
|
667
|
+
"packageManager": {
|
|
668
|
+
"type": "string",
|
|
669
|
+
"description": "The default package manager to use.",
|
|
670
|
+
"enum": ["yarn", "pnpm", "npm", "bun"]
|
|
671
|
+
}
|
|
672
|
+
}
|
|
900
673
|
},
|
|
901
|
-
"
|
|
902
|
-
|
|
674
|
+
"generatorOptions": {
|
|
675
|
+
"type": "object",
|
|
676
|
+
"description": "List of default values used by generators."
|
|
903
677
|
},
|
|
904
|
-
"
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
678
|
+
"tasksRunnerOptions": {
|
|
679
|
+
"type": "object",
|
|
680
|
+
"description": "Available Task Runners.",
|
|
681
|
+
"properties": {
|
|
682
|
+
"runner": {
|
|
683
|
+
"type": "string",
|
|
684
|
+
"description": "Path to resolve the runner."
|
|
685
|
+
},
|
|
686
|
+
"options": {
|
|
687
|
+
"type": "object",
|
|
688
|
+
"description": "Default options for the runner.",
|
|
689
|
+
"properties": {
|
|
690
|
+
"accessToken": {
|
|
691
|
+
"type": "string"
|
|
692
|
+
},
|
|
693
|
+
"nxCloudId": {
|
|
694
|
+
"type": "string"
|
|
695
|
+
},
|
|
696
|
+
"captureStderr": {
|
|
697
|
+
"type": "boolean",
|
|
698
|
+
"description": "Defines whether the cache captures stderr or just stdout."
|
|
699
|
+
},
|
|
700
|
+
"parallel": {
|
|
701
|
+
"type": "number",
|
|
702
|
+
"description": "Defines the max number of targets ran in parallel."
|
|
703
|
+
},
|
|
704
|
+
"cacheableOperations": {
|
|
705
|
+
"type": "array",
|
|
706
|
+
"description": "Defines the list of targets/operations that are cached by Nx.",
|
|
707
|
+
"items": {
|
|
708
|
+
"type": "string"
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
"cacheDirectory": {
|
|
712
|
+
"type": "string",
|
|
713
|
+
"description": "Defines where the local cache is stored."
|
|
714
|
+
},
|
|
715
|
+
"skipNxCache": {
|
|
716
|
+
"type": "boolean",
|
|
717
|
+
"description": "Defines whether the Nx Cache should be skipped."
|
|
718
|
+
},
|
|
719
|
+
"encryptionKey": {
|
|
720
|
+
"type": "string",
|
|
721
|
+
"description": "Defines an encryption key to support end-to-end encryption of your cloud cache. You may also provide an environment variable with the key NX_CLOUD_ENCRYPTION_KEY that contains an encryption key as its value. The Nx Cloud task runner normalizes the key length, so any length of key is acceptable."
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
"additionalProperties": false
|
|
909
727
|
},
|
|
910
|
-
"
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
"
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
728
|
+
"targetDefaultsConfig": {
|
|
729
|
+
"type": "object",
|
|
730
|
+
"description": "Target defaults",
|
|
731
|
+
"properties": {
|
|
732
|
+
"executor": {
|
|
733
|
+
"description": "The function that Nx will invoke when you run this target",
|
|
734
|
+
"type": "string"
|
|
735
|
+
},
|
|
736
|
+
"options": {
|
|
737
|
+
"type": "object"
|
|
738
|
+
},
|
|
739
|
+
"outputs": {
|
|
740
|
+
"type": "array",
|
|
741
|
+
"items": {
|
|
742
|
+
"type": "string"
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
"defaultConfiguration": {
|
|
922
746
|
"type": "string",
|
|
923
|
-
"description": "
|
|
924
|
-
|
|
925
|
-
|
|
747
|
+
"description": "The name of a configuration to use as the default if a configuration is not provided"
|
|
748
|
+
},
|
|
749
|
+
"configurations": {
|
|
750
|
+
"type": "object",
|
|
751
|
+
"description": "provides extra sets of values that will be merged into the options map",
|
|
752
|
+
"additionalProperties": {
|
|
753
|
+
"type": "object"
|
|
754
|
+
}
|
|
755
|
+
},
|
|
756
|
+
"continuous": {
|
|
926
757
|
"type": "boolean",
|
|
927
|
-
"
|
|
928
|
-
"
|
|
929
|
-
}
|
|
758
|
+
"default": false,
|
|
759
|
+
"description": "Whether this target runs continuously until stopped"
|
|
930
760
|
},
|
|
931
|
-
"
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
761
|
+
"parallelism": {
|
|
762
|
+
"type": "boolean",
|
|
763
|
+
"default": true,
|
|
764
|
+
"description": "Whether this target can be run in parallel with other tasks"
|
|
765
|
+
},
|
|
766
|
+
"inputs": {
|
|
767
|
+
"$ref": "#/definitions/inputs"
|
|
768
|
+
},
|
|
769
|
+
"dependsOn": {
|
|
770
|
+
"type": "array",
|
|
771
|
+
"items": {
|
|
772
|
+
"oneOf": [
|
|
773
|
+
{
|
|
774
|
+
"type": "string"
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
"type": "object",
|
|
778
|
+
"properties": {
|
|
779
|
+
"projects": {
|
|
780
|
+
"oneOf": [
|
|
781
|
+
{
|
|
782
|
+
"type": "string",
|
|
783
|
+
"description": "A project name"
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
"type": "array",
|
|
787
|
+
"description": "An array of project names",
|
|
788
|
+
"minItems": 1,
|
|
789
|
+
"items": {
|
|
790
|
+
"type": "string"
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
]
|
|
794
|
+
},
|
|
795
|
+
"dependencies": {
|
|
796
|
+
"type": "boolean"
|
|
797
|
+
},
|
|
798
|
+
"target": {
|
|
799
|
+
"type": "string",
|
|
800
|
+
"description": "The name of the target."
|
|
801
|
+
},
|
|
802
|
+
"params": {
|
|
803
|
+
"type": "string",
|
|
804
|
+
"description": "Configuration for params handling.",
|
|
805
|
+
"enum": ["ignore", "forward"],
|
|
806
|
+
"default": "ignore"
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
"oneOf": [
|
|
810
|
+
{
|
|
811
|
+
"required": ["projects", "target"]
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"required": ["dependencies", "target"]
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"required": ["target"],
|
|
818
|
+
"not": {
|
|
819
|
+
"anyOf": [
|
|
820
|
+
{
|
|
821
|
+
"required": ["projects"]
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"required": ["dependencies"]
|
|
825
|
+
}
|
|
826
|
+
]
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
],
|
|
830
|
+
"additionalProperties": false
|
|
831
|
+
}
|
|
832
|
+
]
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
"cache": {
|
|
836
|
+
"type": "boolean",
|
|
837
|
+
"description": "Specifies if the given target should be cacheable"
|
|
838
|
+
},
|
|
839
|
+
"syncGenerators": {
|
|
840
|
+
"type": "array",
|
|
841
|
+
"items": {
|
|
842
|
+
"type": "string"
|
|
843
|
+
},
|
|
844
|
+
"description": "List of generators to run before the target to ensure the workspace is up to date"
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
"additionalProperties": false
|
|
979
848
|
},
|
|
980
|
-
"
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
849
|
+
"plugins": {
|
|
850
|
+
"oneOf": [
|
|
851
|
+
{
|
|
852
|
+
"type": "string",
|
|
853
|
+
"description": "A plugin module to load with default options"
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"type": "object",
|
|
857
|
+
"properties": {
|
|
858
|
+
"plugin": {
|
|
859
|
+
"type": "string",
|
|
860
|
+
"description": "The plugin module to load"
|
|
861
|
+
},
|
|
862
|
+
"options": {
|
|
863
|
+
"type": "object",
|
|
864
|
+
"description": "The options passed to the plugin when creating nodes and dependencies"
|
|
865
|
+
},
|
|
866
|
+
"include": {
|
|
867
|
+
"type": "array",
|
|
868
|
+
"description": "File patterns which are included by the plugin",
|
|
869
|
+
"items": {
|
|
870
|
+
"type": "string"
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
"exclude": {
|
|
874
|
+
"type": "array",
|
|
875
|
+
"description": "File patterns which are excluded by the plugin",
|
|
876
|
+
"items": {
|
|
877
|
+
"type": "string"
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
}
|
|
991
882
|
]
|
|
992
|
-
}
|
|
993
|
-
},
|
|
994
|
-
"versionActions": {
|
|
995
|
-
"type": "string",
|
|
996
|
-
"description": "The path to the version actions implementation to use for releasing all projects by default. This can also be overridden on the release group and project levels.",
|
|
997
|
-
"default": "@nx/js/src/release"
|
|
998
883
|
},
|
|
999
|
-
"
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
884
|
+
"NxReleaseGitConfiguration": {
|
|
885
|
+
"type": "object",
|
|
886
|
+
"properties": {
|
|
887
|
+
"commit": {
|
|
888
|
+
"type": "boolean",
|
|
889
|
+
"description": "Whether or not to automatically commit the changes made by current command"
|
|
890
|
+
},
|
|
891
|
+
"commitMessage": {
|
|
892
|
+
"type": "string",
|
|
893
|
+
"description": "Custom git commit message to use when committing the changes made by this command"
|
|
894
|
+
},
|
|
895
|
+
"commitArgs": {
|
|
896
|
+
"type": ["string", "array"],
|
|
897
|
+
"description": "Additional arguments (added after the --message argument, which may or may not be customized with --git-commit-message) to pass to the `git commit` command invoked behind the scenes"
|
|
898
|
+
},
|
|
899
|
+
"stageChanges": {
|
|
900
|
+
"type": "boolean",
|
|
901
|
+
"description": "Whether or not to stage the changes made by this command. Always treated as true if commit is true."
|
|
902
|
+
},
|
|
903
|
+
"tag": {
|
|
904
|
+
"type": "boolean",
|
|
905
|
+
"description": "Whether or not to automatically tag the changes made by this command"
|
|
906
|
+
},
|
|
907
|
+
"tagMessage": {
|
|
908
|
+
"type": "string",
|
|
909
|
+
"description": "Custom git tag message to use when tagging the changes made by this command. This defaults to be the same value as the tag itself."
|
|
910
|
+
},
|
|
911
|
+
"tagArgs": {
|
|
912
|
+
"type": ["string", "array"],
|
|
913
|
+
"description": "Additional arguments to pass to the `git tag` command invoked behind the scenes"
|
|
914
|
+
},
|
|
915
|
+
"push": {
|
|
916
|
+
"type": "boolean",
|
|
917
|
+
"description": "Whether or not to automatically push the changes made by this command. This defaults to false"
|
|
918
|
+
},
|
|
919
|
+
"pushArgs": {
|
|
920
|
+
"type": ["string", "array"],
|
|
921
|
+
"description": "Additional arguments to pass to the `git push` command invoked behind the scenes"
|
|
922
|
+
}
|
|
1022
923
|
}
|
|
1023
|
-
]
|
|
1024
924
|
},
|
|
1025
|
-
"
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
925
|
+
"NxReleaseVersionConfiguration": {
|
|
926
|
+
"type": "object",
|
|
927
|
+
"description": "Configuration for the versioning phase of releases.",
|
|
928
|
+
"additionalProperties": false,
|
|
929
|
+
"properties": {
|
|
930
|
+
"conventionalCommits": {
|
|
931
|
+
"type": "boolean",
|
|
932
|
+
"description": "Shorthand for enabling the current version of projects to be resolved from git tags, and the next version to be determined by analyzing commit messages according to the Conventional Commits specification.",
|
|
933
|
+
"default": false
|
|
934
|
+
},
|
|
935
|
+
"git": {
|
|
936
|
+
"$ref": "#/definitions/NxReleaseGitConfiguration"
|
|
937
|
+
},
|
|
938
|
+
"preVersionCommand": {
|
|
939
|
+
"type": "string",
|
|
940
|
+
"description": "A command to run after validation of nx release configuration, but before versioning begins. Useful for preparing build artifacts. If --dry-run is passed, the command is still executed, but with the NX_DRY_RUN environment variable set to 'true'."
|
|
941
|
+
},
|
|
942
|
+
"specifierSource": {
|
|
943
|
+
"type": "string",
|
|
944
|
+
"enum": ["prompt", "conventional-commits", "version-plans"],
|
|
945
|
+
"default": "prompt",
|
|
946
|
+
"description": "The source to use for determining the specifier to use when versioning. 'prompt' is the default and will interactively prompt the user for an explicit/imperative specifier. 'conventional-commits' will attempt determine a specifier from commit messages conforming to the Conventional Commits specification. 'version-plans' will determine the specifier from the version plan files available on disk."
|
|
947
|
+
},
|
|
948
|
+
"manifestRootsToUpdate": {
|
|
949
|
+
"type": "array",
|
|
950
|
+
"items": {
|
|
951
|
+
"oneOf": [
|
|
952
|
+
{
|
|
953
|
+
"type": "string",
|
|
954
|
+
"description": "Path to the directory containing a manifest file to update. Supports placeholders like {projectRoot} and {projectName}."
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
"type": "object",
|
|
958
|
+
"properties": {
|
|
959
|
+
"path": {
|
|
960
|
+
"type": "string",
|
|
961
|
+
"description": "Path to the directory containing a manifest file to update. Supports placeholders like {projectRoot} and {projectName}."
|
|
962
|
+
},
|
|
963
|
+
"preserveLocalDependencyProtocols": {
|
|
964
|
+
"type": "boolean",
|
|
965
|
+
"description": "Whether to preserve local dependency references using protocols like 'workspace:' or 'file:'. Set this to false for dist files that need to be published if not using a package manager that swaps references at publish time like pnpm or bun.",
|
|
966
|
+
"default": true
|
|
967
|
+
}
|
|
968
|
+
},
|
|
969
|
+
"required": ["path"],
|
|
970
|
+
"additionalProperties": false
|
|
971
|
+
}
|
|
972
|
+
]
|
|
973
|
+
},
|
|
974
|
+
"description": "A list of directories containing manifest files (such as package.json) to apply updates to when versioning. By default, only the project root will be used, but you could customize this to only version a manifest in a dist directory, or even version multiple manifests in different directories, such as both source and dist."
|
|
975
|
+
},
|
|
976
|
+
"currentVersionResolver": {
|
|
977
|
+
"type": "string",
|
|
978
|
+
"enum": ["registry", "disk", "git-tag", "none"],
|
|
979
|
+
"description": "The resolver to use for determining the current version of a project during versioning. This is needed for versioning approaches which involve relatively modifying a current version to arrive at a new version, such as semver bumps like 'patch', 'minor' etc. Using 'none' explicitly declares that the current version is not needed to compute the new version, and should only be used with appropriate version actions implementations that support it."
|
|
980
|
+
},
|
|
981
|
+
"currentVersionResolverMetadata": {
|
|
982
|
+
"type": "object",
|
|
983
|
+
"additionalProperties": true,
|
|
984
|
+
"description": "Metadata to provide to the configured currentVersionResolver to help it in determining the current version. What to pass here is specific to each resolver."
|
|
985
|
+
},
|
|
986
|
+
"fallbackCurrentVersionResolver": {
|
|
987
|
+
"type": "string",
|
|
988
|
+
"enum": ["disk"],
|
|
989
|
+
"description": "The fallback version resolver to use when the configured currentVersionResolver fails to resolve the current version."
|
|
990
|
+
},
|
|
991
|
+
"versionPrefix": {
|
|
992
|
+
"type": "string",
|
|
993
|
+
"enum": ["auto", "", "~", "^", "="],
|
|
994
|
+
"default": "auto",
|
|
995
|
+
"description": "The prefix to use when versioning dependencies. This can be one of the following: auto, '', '~', '^', '=', where auto means the existing prefix will be preserved."
|
|
996
|
+
},
|
|
997
|
+
"deleteVersionPlans": {
|
|
998
|
+
"type": "boolean",
|
|
999
|
+
"description": "Whether to delete the processed version plans file after versioning is complete. This is false by default because the version plans are also needed for changelog generation.",
|
|
1000
|
+
"default": false
|
|
1001
|
+
},
|
|
1002
|
+
"updateDependents": {
|
|
1003
|
+
"type": "string",
|
|
1004
|
+
"enum": ["never", "auto", "always"],
|
|
1005
|
+
"default": "auto",
|
|
1006
|
+
"description": "When versioning independent projects, this controls whether to update their dependents (i.e. the things that depend on them). 'never' means no dependents will be updated (unless they happen to be versioned directly as well). 'auto' is the default and will cause dependents to be updated (a patch version bump) when a dependency is versioned, as long as a group or projects filter is not applied that does not include them. 'always' will cause dependents to be updated (a patch version bump) when a dependency is versioned, even if they are not included in the group or projects filter."
|
|
1007
|
+
},
|
|
1008
|
+
"logUnchangedProjects": {
|
|
1009
|
+
"type": "boolean",
|
|
1010
|
+
"description": "Whether to log projects that have not changed during versioning.",
|
|
1011
|
+
"default": true
|
|
1012
|
+
},
|
|
1013
|
+
"preserveLocalDependencyProtocols": {
|
|
1014
|
+
"type": "boolean",
|
|
1015
|
+
"description": "Whether to preserve local dependency protocols (e.g. file references, or the `workspace:` protocol in package.json files) of local dependencies when updating them during versioning.",
|
|
1016
|
+
"default": true
|
|
1017
|
+
},
|
|
1018
|
+
"preserveMatchingDependencyRanges": {
|
|
1019
|
+
"type": ["boolean", "array"],
|
|
1020
|
+
"description": "Whether to preserve matching dependency ranges when updating them during versioning. This is false by default. (e.g. The new version will be '1.2.0' and the current version range in dependents is already '^1.0.0'. Therefore, the manifest file is not updated.)",
|
|
1021
|
+
"default": false,
|
|
1022
|
+
"items": {
|
|
1023
|
+
"type": "string",
|
|
1024
|
+
"enum": [
|
|
1025
|
+
"dependencies",
|
|
1026
|
+
"devDependencies",
|
|
1027
|
+
"peerDependencies",
|
|
1028
|
+
"optionalDependencies"
|
|
1029
|
+
]
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
"versionActions": {
|
|
1033
|
+
"type": "string",
|
|
1034
|
+
"description": "The path to the version actions implementation to use for releasing all projects by default. This can also be overridden on the release group and project levels.",
|
|
1035
|
+
"default": "@nx/js/src/release"
|
|
1036
|
+
},
|
|
1037
|
+
"versionActionsOptions": {
|
|
1038
|
+
"type": "object",
|
|
1039
|
+
"description": "The specific options that are defined by each version actions implementation. They will be passed to the version actions implementation when running a release.",
|
|
1040
|
+
"additionalProperties": true
|
|
1041
|
+
}
|
|
1033
1042
|
}
|
|
1034
|
-
]
|
|
1035
1043
|
},
|
|
1036
|
-
"
|
|
1037
|
-
|
|
1038
|
-
{
|
|
1039
|
-
|
|
1044
|
+
"NxReleaseGroupVersionConfiguration": {
|
|
1045
|
+
"type": "object",
|
|
1046
|
+
"properties": {
|
|
1047
|
+
"groupPreVersionCommand": {
|
|
1048
|
+
"type": "string",
|
|
1049
|
+
"description": "A command to run after validation of nx release configuration AND after the release.version.preVersionCommand (if any), but before versioning begins for this specific group. Useful for preparing build artifacts for the group. If --dry-run is passed, the command is still executed, but with the NX_DRY_RUN environment variable set to 'true'."
|
|
1050
|
+
},
|
|
1051
|
+
"conventionalCommits": {
|
|
1052
|
+
"type": "boolean",
|
|
1053
|
+
"description": "Shorthand for enabling the current version of projects to be resolved from git tags, and the next version to be determined by analyzing commit messages according to the Conventional Commits specification.",
|
|
1054
|
+
"default": false
|
|
1055
|
+
},
|
|
1056
|
+
"git": {
|
|
1057
|
+
"$ref": "#/definitions/NxReleaseGitConfiguration"
|
|
1058
|
+
},
|
|
1059
|
+
"specifierSource": {
|
|
1060
|
+
"type": "string",
|
|
1061
|
+
"enum": ["prompt", "conventional-commits", "version-plans"],
|
|
1062
|
+
"default": "prompt",
|
|
1063
|
+
"description": "The source to use for determining the specifier to use when versioning. 'prompt' is the default and will interactively prompt the user for an explicit/imperative specifier. 'conventional-commits' will attempt determine a specifier from commit messages conforming to the Conventional Commits specification. 'version-plans' will determine the specifier from the version plan files available on disk."
|
|
1064
|
+
},
|
|
1065
|
+
"manifestRootsToUpdate": {
|
|
1066
|
+
"type": "array",
|
|
1067
|
+
"items": {
|
|
1068
|
+
"oneOf": [
|
|
1069
|
+
{
|
|
1070
|
+
"type": "string",
|
|
1071
|
+
"description": "Path to the directory containing a manifest file to update. Supports placeholders like {projectRoot} and {projectName}."
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
"type": "object",
|
|
1075
|
+
"properties": {
|
|
1076
|
+
"path": {
|
|
1077
|
+
"type": "string",
|
|
1078
|
+
"description": "Path to the directory containing a manifest file to update. Supports placeholders like {projectRoot} and {projectName}."
|
|
1079
|
+
},
|
|
1080
|
+
"preserveLocalDependencyProtocols": {
|
|
1081
|
+
"type": "boolean",
|
|
1082
|
+
"description": "Whether to preserve local dependency references using protocols like 'workspace:' or 'file:'. Set this to false for dist files that need to be published if not using a package manager that swaps references at publish time like pnpm or bun.",
|
|
1083
|
+
"default": true
|
|
1084
|
+
}
|
|
1085
|
+
},
|
|
1086
|
+
"required": ["path"],
|
|
1087
|
+
"additionalProperties": false
|
|
1088
|
+
}
|
|
1089
|
+
]
|
|
1090
|
+
},
|
|
1091
|
+
"description": "A list of directories containing manifest files (such as package.json) to apply updates to when versioning. By default, only the project root will be used, but you could customize this to only version a manifest in a dist directory, or even version multiple manifests in different directories, such as both source and dist."
|
|
1092
|
+
},
|
|
1093
|
+
"currentVersionResolver": {
|
|
1094
|
+
"type": "string",
|
|
1095
|
+
"enum": ["registry", "disk", "git-tag", "none"],
|
|
1096
|
+
"description": "The resolver to use for determining the current version of a project during versioning. This is needed for versioning approaches which involve relatively modifying a current version to arrive at a new version, such as semver bumps like 'patch', 'minor' etc. Using 'none' explicitly declares that the current version is not needed to compute the new version, and should only be used with appropriate version actions implementations that support it."
|
|
1097
|
+
},
|
|
1098
|
+
"currentVersionResolverMetadata": {
|
|
1099
|
+
"type": "object",
|
|
1100
|
+
"additionalProperties": true,
|
|
1101
|
+
"description": "Metadata to provide to the configured currentVersionResolver to help it in determining the current version. What to pass here is specific to each resolver."
|
|
1102
|
+
},
|
|
1103
|
+
"fallbackCurrentVersionResolver": {
|
|
1104
|
+
"type": "string",
|
|
1105
|
+
"enum": ["disk"],
|
|
1106
|
+
"description": "The fallback version resolver to use when the configured currentVersionResolver fails to resolve the current version."
|
|
1107
|
+
},
|
|
1108
|
+
"versionPrefix": {
|
|
1109
|
+
"type": "string",
|
|
1110
|
+
"enum": ["auto", "", "~", "^", "="],
|
|
1111
|
+
"default": "auto",
|
|
1112
|
+
"description": "The prefix to use when versioning dependencies. This can be one of the following: auto, '', '~', '^', '=', where auto means the existing prefix will be preserved."
|
|
1113
|
+
},
|
|
1114
|
+
"deleteVersionPlans": {
|
|
1115
|
+
"type": "boolean",
|
|
1116
|
+
"description": "Whether to delete the processed version plans file after versioning is complete. This is false by default because the version plans are also needed for changelog generation.",
|
|
1117
|
+
"default": false
|
|
1118
|
+
},
|
|
1119
|
+
"updateDependents": {
|
|
1120
|
+
"type": "string",
|
|
1121
|
+
"enum": ["never", "auto"],
|
|
1122
|
+
"default": "auto",
|
|
1123
|
+
"description": "When versioning independent projects, this controls whether to update their dependents (i.e. the things that depend on them). 'never' means no dependents will be updated (unless they happen to be versioned directly as well). 'auto' is the default and will cause dependents to be updated (a patch version bump) when a dependency is versioned."
|
|
1124
|
+
},
|
|
1125
|
+
"logUnchangedProjects": {
|
|
1126
|
+
"type": "boolean",
|
|
1127
|
+
"description": "Whether to log projects that have not changed during versioning.",
|
|
1128
|
+
"default": true
|
|
1129
|
+
},
|
|
1130
|
+
"preserveLocalDependencyProtocols": {
|
|
1131
|
+
"type": "boolean",
|
|
1132
|
+
"description": "Whether to preserve local dependency protocols (e.g. file references, or the `workspace:` protocol in package.json files) of local dependencies when updating them during versioning.",
|
|
1133
|
+
"default": true
|
|
1134
|
+
},
|
|
1135
|
+
"preserveMatchingDependencyRanges": {
|
|
1136
|
+
"type": ["boolean", "array"],
|
|
1137
|
+
"description": "Whether to preserve matching dependency ranges when updating them during versioning. This is false by default. (e.g. The new version will be '1.2.0' and the current version range in dependents is already '^1.0.0'. Therefore, the manifest file is not updated.)",
|
|
1138
|
+
"default": false,
|
|
1139
|
+
"items": {
|
|
1140
|
+
"type": "string",
|
|
1141
|
+
"enum": [
|
|
1142
|
+
"dependencies",
|
|
1143
|
+
"devDependencies",
|
|
1144
|
+
"peerDependencies",
|
|
1145
|
+
"optionalDependencies"
|
|
1146
|
+
]
|
|
1147
|
+
}
|
|
1148
|
+
},
|
|
1149
|
+
"versionActions": {
|
|
1150
|
+
"type": "string",
|
|
1151
|
+
"description": "The path to the version actions implementation to use for releasing all projects by default. This can also be overridden on the release group and project levels.",
|
|
1152
|
+
"default": "@nx/js/src/release"
|
|
1153
|
+
},
|
|
1154
|
+
"versionActionsOptions": {
|
|
1155
|
+
"type": "object",
|
|
1156
|
+
"description": "The specific options that are defined by each version actions implementation. They will be passed to the version actions implementation when running a release.",
|
|
1157
|
+
"additionalProperties": true
|
|
1158
|
+
}
|
|
1040
1159
|
},
|
|
1041
|
-
|
|
1042
|
-
"type": "boolean",
|
|
1043
|
-
"enum": [false]
|
|
1044
|
-
}
|
|
1045
|
-
]
|
|
1046
|
-
},
|
|
1047
|
-
"renderer": {
|
|
1048
|
-
"type": "string"
|
|
1049
|
-
},
|
|
1050
|
-
"renderOptions": {
|
|
1051
|
-
"$ref": "#/definitions/ChangelogRenderOptions"
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
},
|
|
1055
|
-
"CreateReleaseProviderConfiguration": {
|
|
1056
|
-
"type": "object",
|
|
1057
|
-
"properties": {
|
|
1058
|
-
"provider": {
|
|
1059
|
-
"type": "string",
|
|
1060
|
-
"enum": ["github-enterprise-server", "gitlab"]
|
|
1061
|
-
},
|
|
1062
|
-
"hostname": {
|
|
1063
|
-
"type": "string",
|
|
1064
|
-
"description": "The hostname of the VCS provider instance, e.g. github.example.com"
|
|
1160
|
+
"additionalProperties": false
|
|
1065
1161
|
},
|
|
1066
|
-
"
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
},
|
|
1071
|
-
"required": ["provider", "hostname"]
|
|
1072
|
-
},
|
|
1073
|
-
"NxReleaseVersionPlansConfiguration": {
|
|
1074
|
-
"type": "object",
|
|
1075
|
-
"properties": {
|
|
1076
|
-
"ignorePatternsForPlanCheck": {
|
|
1077
|
-
"type": "array",
|
|
1078
|
-
"items": {
|
|
1079
|
-
"type": "string"
|
|
1080
|
-
},
|
|
1081
|
-
"description": "Changes to files matching any of these optional patterns will be excluded from the affected project logic within the `nx release plan:check` command. This is useful for ignoring files that are not relevant to the versioning process, such as documentation or configuration files."
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
},
|
|
1085
|
-
"NxReleaseReleaseTagPatternStrictPreidConfiguration": {
|
|
1086
|
-
"type": "boolean",
|
|
1087
|
-
"description": "When set to true and multiple tags match your configured \"releaseTagPattern\", the git tag matching logic will strictly prefer the tag which contain a semver preid which matches the one given to the nx release invocation.\n\nFor example, let's say your \"releaseTagPattern\" is \"{projectName}@{version}\" and you have the following tags for project \"my-lib\", which uses semver:\n- my-lib@1.2.4-beta.1\n- my-lib@1.2.4-alpha.1\n- my-lib@1.2.3\n\nIf \"releaseTagPatternStrictPreid\" is set to true and you run:\n- `nx release --preid beta`, the git tag \"my-lib@1.2.4-beta.1\" will be resolved.\n- `nx release --preid alpha`, the git tag \"my-lib@1.2.4-alpha.1\" will be resolved.\n- `nx release` (no preid), the git tag \"my-lib@1.2.3\" will be resolved.\n\nIf \"releaseTagPatternStrictPreid\" is set to false, the git tag \"my-lib@1.2.4-beta.1\" will always be resolved as the latest tag that matches the pattern, regardless of any preid which gets passed to nx release.\n\nNOTE: This feature was added in a minor version and is therefore set to false by default, but this may change in a future major version."
|
|
1088
|
-
},
|
|
1089
|
-
"ChangelogRenderOptions": {
|
|
1090
|
-
"type": "object",
|
|
1091
|
-
"additionalProperties": true
|
|
1092
|
-
},
|
|
1093
|
-
"NxReleaseConventionalCommitsConfiguration": {
|
|
1094
|
-
"type": "object",
|
|
1095
|
-
"properties": {
|
|
1096
|
-
"types": {
|
|
1097
|
-
"type": "object",
|
|
1098
|
-
"description": "A map of commit types to their configuration. If a type is set to 'true', then it will be enabled with the default 'semverBump' of 'patch' and will appear in the changelog. If a type is set to 'false', then it will not trigger a version bump and will be hidden from the changelog.",
|
|
1099
|
-
"additionalProperties": {
|
|
1100
|
-
"oneOf": [
|
|
1101
|
-
{
|
|
1102
|
-
"type": "boolean"
|
|
1103
|
-
},
|
|
1104
|
-
{
|
|
1105
|
-
"type": "object",
|
|
1106
|
-
"properties": {
|
|
1107
|
-
"semverBump": {
|
|
1108
|
-
"type": "string",
|
|
1109
|
-
"enum": ["major", "minor", "patch", "none"],
|
|
1110
|
-
"description": "The semver bump to apply to the version of the project(s) when a commit of this type is included in the release.",
|
|
1111
|
-
"default": "patch"
|
|
1112
|
-
},
|
|
1113
|
-
"changelog": {
|
|
1114
|
-
"description": "Configuration for the changelog section for commits of this type. If set to 'true', then commits of this type will be included in the changelog with their default title for the type. If set to 'false', then commits of this type will not be included in the changelog.",
|
|
1162
|
+
"NxReleaseChangelogConfiguration": {
|
|
1163
|
+
"type": "object",
|
|
1164
|
+
"properties": {
|
|
1165
|
+
"createRelease": {
|
|
1115
1166
|
"oneOf": [
|
|
1116
|
-
|
|
1117
|
-
"type": "boolean"
|
|
1118
|
-
},
|
|
1119
|
-
{
|
|
1120
|
-
"type": "object",
|
|
1121
|
-
"properties": {
|
|
1122
|
-
"title": {
|
|
1167
|
+
{
|
|
1123
1168
|
"type": "string",
|
|
1124
|
-
"
|
|
1125
|
-
|
|
1126
|
-
|
|
1169
|
+
"enum": ["github", "gitlab"]
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1127
1172
|
"type": "boolean",
|
|
1128
|
-
"
|
|
1129
|
-
|
|
1130
|
-
|
|
1173
|
+
"enum": [false]
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"$ref": "#/definitions/CreateReleaseProviderConfiguration"
|
|
1131
1177
|
}
|
|
1132
|
-
}
|
|
1133
1178
|
]
|
|
1134
|
-
|
|
1179
|
+
},
|
|
1180
|
+
"entryWhenNoChanges": {
|
|
1181
|
+
"oneOf": [
|
|
1182
|
+
{
|
|
1183
|
+
"type": "string"
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"type": "boolean",
|
|
1187
|
+
"enum": [false]
|
|
1188
|
+
}
|
|
1189
|
+
]
|
|
1190
|
+
},
|
|
1191
|
+
"file": {
|
|
1192
|
+
"oneOf": [
|
|
1193
|
+
{
|
|
1194
|
+
"type": "string"
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"type": "boolean",
|
|
1198
|
+
"enum": [false]
|
|
1199
|
+
}
|
|
1200
|
+
]
|
|
1201
|
+
},
|
|
1202
|
+
"renderer": {
|
|
1203
|
+
"type": "string"
|
|
1204
|
+
},
|
|
1205
|
+
"renderOptions": {
|
|
1206
|
+
"$ref": "#/definitions/ChangelogRenderOptions"
|
|
1135
1207
|
}
|
|
1136
|
-
|
|
1137
|
-
]
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
},
|
|
1142
|
-
"NxReleaseDockerConfiguration": {
|
|
1143
|
-
"type": "object",
|
|
1144
|
-
"description": "Configuration for handling Docker projects during nx release.",
|
|
1145
|
-
"properties": {
|
|
1146
|
-
"preVersionCommand": {
|
|
1147
|
-
"type": "string",
|
|
1148
|
-
"description": "A command to run after validation of nx release configuration, but before docker versioning begins. Useful for preparing docker build artifacts. If --dry-run is passed, the command is still executed, but with the NX_DRY_RUN environment variable set to 'true'."
|
|
1208
|
+
}
|
|
1149
1209
|
},
|
|
1150
|
-
"
|
|
1151
|
-
|
|
1152
|
-
{
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1210
|
+
"CreateReleaseProviderConfiguration": {
|
|
1211
|
+
"type": "object",
|
|
1212
|
+
"properties": {
|
|
1213
|
+
"provider": {
|
|
1214
|
+
"type": "string",
|
|
1215
|
+
"enum": ["github-enterprise-server", "gitlab"]
|
|
1216
|
+
},
|
|
1217
|
+
"hostname": {
|
|
1218
|
+
"type": "string",
|
|
1219
|
+
"description": "The hostname of the VCS provider instance, e.g. github.example.com"
|
|
1220
|
+
},
|
|
1221
|
+
"apiBaseUrl": {
|
|
1222
|
+
"type": "string",
|
|
1223
|
+
"description": "The base URL for the relevant VCS provider API. If not set, this will default to `https://${hostname}/api/v3` (github) or `https://${hostname}/api/v4` (gitlab)."
|
|
1224
|
+
}
|
|
1158
1225
|
},
|
|
1159
|
-
|
|
1160
|
-
"type": "boolean",
|
|
1161
|
-
"description": "When set to true, all projects in the release setup/release group will use a no-op VersionActions implementation."
|
|
1162
|
-
}
|
|
1163
|
-
],
|
|
1164
|
-
"description": "Projects which should use a no-op VersionActions implementation rather than any potentially inferred by default or via Inference Plugins. Can be an array of project names (subset of projects in the release setup/release group) or a boolean (true means all projects)."
|
|
1226
|
+
"required": ["provider", "hostname"]
|
|
1165
1227
|
},
|
|
1166
|
-
"
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1228
|
+
"NxReleaseVersionPlansConfiguration": {
|
|
1229
|
+
"type": "object",
|
|
1230
|
+
"properties": {
|
|
1231
|
+
"ignorePatternsForPlanCheck": {
|
|
1232
|
+
"type": "array",
|
|
1233
|
+
"items": {
|
|
1234
|
+
"type": "string"
|
|
1235
|
+
},
|
|
1236
|
+
"description": "Changes to files matching any of these optional patterns will be excluded from the affected project logic within the `nx release plan:check` command. This is useful for ignoring files that are not relevant to the versioning process, such as documentation or configuration files."
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1172
1239
|
},
|
|
1173
|
-
"
|
|
1174
|
-
|
|
1175
|
-
|
|
1240
|
+
"NxReleaseReleaseTagPatternStrictPreidConfiguration": {
|
|
1241
|
+
"type": "boolean",
|
|
1242
|
+
"description": "When set to true and multiple tags match your configured \"releaseTagPattern\", the git tag matching logic will strictly prefer the tag which contain a semver preid which matches the one given to the nx release invocation.\n\nFor example, let's say your \"releaseTagPattern\" is \"{projectName}@{version}\" and you have the following tags for project \"my-lib\", which uses semver:\n- my-lib@1.2.4-beta.1\n- my-lib@1.2.4-alpha.1\n- my-lib@1.2.3\n\nIf \"releaseTagPatternStrictPreid\" is set to true and you run:\n- `nx release --preid beta`, the git tag \"my-lib@1.2.4-beta.1\" will be resolved.\n- `nx release --preid alpha`, the git tag \"my-lib@1.2.4-alpha.1\" will be resolved.\n- `nx release` (no preid), the git tag \"my-lib@1.2.3\" will be resolved.\n\nIf \"releaseTagPatternStrictPreid\" is set to false, the git tag \"my-lib@1.2.4-beta.1\" will always be resolved as the latest tag that matches the pattern, regardless of any preid which gets passed to nx release.\n\nNOTE: This feature was added in a minor version and is therefore set to false by default, but this may change in a future major version."
|
|
1176
1243
|
},
|
|
1177
|
-
"
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
}
|
|
1181
|
-
},
|
|
1182
|
-
"additionalProperties": false
|
|
1183
|
-
},
|
|
1184
|
-
"NxReleaseGroupDockerConfiguration": {
|
|
1185
|
-
"type": "object",
|
|
1186
|
-
"properties": {
|
|
1187
|
-
"groupPreVersionCommand": {
|
|
1188
|
-
"type": "string",
|
|
1189
|
-
"description": "A command to run after validation of nx release configuration, but before docker versioning begins. Used for preparing docker build artifacts. If --dry-run is passed, the command is still executed, but with the NX_DRY_RUN environment variable set to 'true'. It will run in addition to the global `preVersionCommand`"
|
|
1244
|
+
"ChangelogRenderOptions": {
|
|
1245
|
+
"type": "object",
|
|
1246
|
+
"additionalProperties": true
|
|
1190
1247
|
},
|
|
1191
|
-
"
|
|
1192
|
-
|
|
1193
|
-
{
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1248
|
+
"NxReleaseConventionalCommitsConfiguration": {
|
|
1249
|
+
"type": "object",
|
|
1250
|
+
"properties": {
|
|
1251
|
+
"types": {
|
|
1252
|
+
"type": "object",
|
|
1253
|
+
"description": "A map of commit types to their configuration. If a type is set to 'true', then it will be enabled with the default 'semverBump' of 'patch' and will appear in the changelog. If a type is set to 'false', then it will not trigger a version bump and will be hidden from the changelog.",
|
|
1254
|
+
"additionalProperties": {
|
|
1255
|
+
"oneOf": [
|
|
1256
|
+
{
|
|
1257
|
+
"type": "boolean"
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"type": "object",
|
|
1261
|
+
"properties": {
|
|
1262
|
+
"semverBump": {
|
|
1263
|
+
"type": "string",
|
|
1264
|
+
"enum": ["major", "minor", "patch", "none"],
|
|
1265
|
+
"description": "The semver bump to apply to the version of the project(s) when a commit of this type is included in the release.",
|
|
1266
|
+
"default": "patch"
|
|
1267
|
+
},
|
|
1268
|
+
"changelog": {
|
|
1269
|
+
"description": "Configuration for the changelog section for commits of this type. If set to 'true', then commits of this type will be included in the changelog with their default title for the type. If set to 'false', then commits of this type will not be included in the changelog.",
|
|
1270
|
+
"oneOf": [
|
|
1271
|
+
{
|
|
1272
|
+
"type": "boolean"
|
|
1273
|
+
},
|
|
1274
|
+
{
|
|
1275
|
+
"type": "object",
|
|
1276
|
+
"properties": {
|
|
1277
|
+
"title": {
|
|
1278
|
+
"type": "string",
|
|
1279
|
+
"description": "The title of the section in the changelog for commits of this type"
|
|
1280
|
+
},
|
|
1281
|
+
"hidden": {
|
|
1282
|
+
"type": "boolean",
|
|
1283
|
+
"description": "Whether or not to include commits of this type in the changelog",
|
|
1284
|
+
"default": false
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
]
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
]
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1203
1295
|
}
|
|
1204
|
-
],
|
|
1205
|
-
"description": "Projects which should use a no-op VersionActions implementation rather than any potentially inferred by default or via Inference Plugins. Can be an array of project names (subset of projects in the release setup/release group) or a boolean (true means all projects)."
|
|
1206
1296
|
},
|
|
1207
|
-
"
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
"
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1297
|
+
"NxReleaseDockerConfiguration": {
|
|
1298
|
+
"type": "object",
|
|
1299
|
+
"description": "Configuration for handling Docker projects during nx release.",
|
|
1300
|
+
"properties": {
|
|
1301
|
+
"preVersionCommand": {
|
|
1302
|
+
"type": "string",
|
|
1303
|
+
"description": "A command to run after validation of nx release configuration, but before docker versioning begins. Useful for preparing docker build artifacts. If --dry-run is passed, the command is still executed, but with the NX_DRY_RUN environment variable set to 'true'."
|
|
1304
|
+
},
|
|
1305
|
+
"skipVersionActions": {
|
|
1306
|
+
"oneOf": [
|
|
1307
|
+
{
|
|
1308
|
+
"type": "array",
|
|
1309
|
+
"items": {
|
|
1310
|
+
"type": "string"
|
|
1311
|
+
},
|
|
1312
|
+
"description": "Array of projects which should use a no-op VersionActions implementation rather than any potentially inferred by default or via Inference Plugins."
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
"type": "boolean",
|
|
1316
|
+
"description": "When set to true, all projects in the release setup/release group will use a no-op VersionActions implementation."
|
|
1317
|
+
}
|
|
1318
|
+
],
|
|
1319
|
+
"description": "Projects which should use a no-op VersionActions implementation rather than any potentially inferred by default or via Inference Plugins. Can be an array of project names (subset of projects in the release setup/release group) or a boolean (true means all projects)."
|
|
1320
|
+
},
|
|
1321
|
+
"versionSchemes": {
|
|
1322
|
+
"type": "object",
|
|
1323
|
+
"additionalProperties": {
|
|
1324
|
+
"type": "string"
|
|
1325
|
+
},
|
|
1326
|
+
"description": "Record of named version patterns to choose between when versioning docker projects. e.g. \"production\": \"{currentDate|YYMM.DD}.{shortCommitSha}\", \"hotfix\": \"{currentDate|YYMM.DD}-hotfix\""
|
|
1327
|
+
},
|
|
1328
|
+
"repositoryName": {
|
|
1329
|
+
"type": "string",
|
|
1330
|
+
"description": "Repository name for the image on the configured registry"
|
|
1331
|
+
},
|
|
1332
|
+
"registryUrl": {
|
|
1333
|
+
"type": "string",
|
|
1334
|
+
"description": "Url of the Docker Image/Container Registry to push images to. Defaults to Docker Hub."
|
|
1335
|
+
}
|
|
1336
|
+
},
|
|
1337
|
+
"additionalProperties": false
|
|
1217
1338
|
},
|
|
1218
|
-
"
|
|
1219
|
-
|
|
1220
|
-
|
|
1339
|
+
"NxReleaseGroupDockerConfiguration": {
|
|
1340
|
+
"type": "object",
|
|
1341
|
+
"properties": {
|
|
1342
|
+
"groupPreVersionCommand": {
|
|
1343
|
+
"type": "string",
|
|
1344
|
+
"description": "A command to run after validation of nx release configuration, but before docker versioning begins. Used for preparing docker build artifacts. If --dry-run is passed, the command is still executed, but with the NX_DRY_RUN environment variable set to 'true'. It will run in addition to the global `preVersionCommand`"
|
|
1345
|
+
},
|
|
1346
|
+
"skipVersionActions": {
|
|
1347
|
+
"oneOf": [
|
|
1348
|
+
{
|
|
1349
|
+
"type": "array",
|
|
1350
|
+
"items": {
|
|
1351
|
+
"type": "string"
|
|
1352
|
+
},
|
|
1353
|
+
"description": "Array of projects which should use a no-op VersionActions implementation rather than any potentially inferred by default or via Inference Plugins."
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"type": "boolean",
|
|
1357
|
+
"description": "When set to true, all projects in the release setup/release group will use a no-op VersionActions implementation."
|
|
1358
|
+
}
|
|
1359
|
+
],
|
|
1360
|
+
"description": "Projects which should use a no-op VersionActions implementation rather than any potentially inferred by default or via Inference Plugins. Can be an array of project names (subset of projects in the release setup/release group) or a boolean (true means all projects)."
|
|
1361
|
+
},
|
|
1362
|
+
"versionSchemes": {
|
|
1363
|
+
"type": "object",
|
|
1364
|
+
"additionalProperties": {
|
|
1365
|
+
"type": "string"
|
|
1366
|
+
},
|
|
1367
|
+
"description": "Record of named version patterns to choose between when versioning docker projects. e.g. \"production\": \"{currentDate|YYMM.DD}.{shortCommitSha}\", \"hotfix\": \"{currentDate|YYMM.DD}-hotfix\""
|
|
1368
|
+
},
|
|
1369
|
+
"repositoryName": {
|
|
1370
|
+
"type": "string",
|
|
1371
|
+
"description": "Repository name for the image on the configured registry"
|
|
1372
|
+
},
|
|
1373
|
+
"registryUrl": {
|
|
1374
|
+
"type": "string",
|
|
1375
|
+
"description": "Url of the Docker Image/Container Registry to push images to. Defaults to Docker Hub."
|
|
1376
|
+
}
|
|
1377
|
+
},
|
|
1378
|
+
"additionalProperties": false
|
|
1221
1379
|
}
|
|
1222
|
-
},
|
|
1223
|
-
"additionalProperties": false
|
|
1224
1380
|
}
|
|
1225
|
-
}
|
|
1226
1381
|
}
|