nx 22.1.0-canary.20251111-647d751 → 22.1.0-canary.20251112-36b9f7a

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.
@@ -1,198 +1,198 @@
1
1
  {
2
- "version": 2,
3
- "title": "Run Commands",
4
- "description": "Run any custom commands with Nx.",
5
- "type": "object",
6
- "cli": "nx",
7
- "outputCapture": "pipe",
8
- "presets": [
9
- {
10
- "name": "Arguments forwarding",
11
- "keys": ["commands"]
12
- },
13
- {
14
- "name": "Custom done conditions",
15
- "keys": ["commands", "readyWhen"]
16
- },
17
- {
18
- "name": "Setting the cwd",
19
- "keys": ["commands", "cwd"]
20
- }
21
- ],
22
- "properties": {
23
- "commands": {
24
- "type": "array",
25
- "description": "Commands to run in child process.",
26
- "items": {
27
- "oneOf": [
28
- {
29
- "type": "object",
30
- "properties": {
31
- "command": {
32
- "type": "string",
33
- "description": "Command to run in child process."
34
- },
35
- "forwardAllArgs": {
36
- "type": "boolean",
37
- "description": "Whether arguments should be forwarded when interpolation is not present."
38
- },
39
- "prefix": {
40
- "type": "string",
41
- "description": "Prefix in front of every line out of the output"
42
- },
43
- "prefixColor": {
44
- "type": "string",
45
- "description": "Color of the prefix",
46
- "enum": [
47
- "black",
48
- "red",
49
- "green",
50
- "yellow",
51
- "blue",
52
- "magenta",
53
- "cyan",
54
- "white"
55
- ]
56
- },
57
- "color": {
58
- "type": "string",
59
- "description": "Color of the output",
60
- "enum": [
61
- "black",
62
- "red",
63
- "green",
64
- "yellow",
65
- "blue",
66
- "magenta",
67
- "cyan",
68
- "white"
69
- ]
70
- },
71
- "bgColor": {
72
- "type": "string",
73
- "description": "Background color of the output",
74
- "enum": [
75
- "bgBlack",
76
- "bgRed",
77
- "bgGreen",
78
- "bgYellow",
79
- "bgBlue",
80
- "bgMagenta",
81
- "bgCyan",
82
- "bgWhite"
83
- ]
84
- },
85
- "description": {
86
- "type": "string",
87
- "description": "An optional description useful for inline documentation purposes. It is not used as part of the execution of the command."
88
- }
89
- },
90
- "additionalProperties": false,
91
- "required": ["command"]
92
- },
93
- {
94
- "type": "string"
95
- }
96
- ]
97
- },
98
- "x-priority": "important"
99
- },
100
- "command": {
101
- "oneOf": [
102
- {
103
- "type": "array",
104
- "description": "Command to run in child process, but divided into parts.",
105
- "items": {
106
- "type": "string"
107
- },
108
- "x-priority": "important"
109
- },
110
- {
111
- "type": "string",
112
- "description": "Command to run in child process."
113
- }
114
- ],
115
- "type": "string",
116
- "description": "Command to run in child process.",
117
- "x-priority": "important"
118
- },
119
- "parallel": {
120
- "type": "boolean",
121
- "description": "Run commands in parallel.",
122
- "default": true,
123
- "x-priority": "important"
124
- },
125
- "readyWhen": {
126
- "description": "String or array of strings to appear in `stdout` or `stderr` that indicate that the task is done. When running multiple commands, this option can only be used when `parallel` is set to `true`. If not specified, the task is done when all the child processes complete.",
127
- "oneOf": [
128
- { "type": "string" },
129
- { "type": "array", "items": { "type": "string" } }
130
- ]
131
- },
132
- "args": {
133
- "oneOf": [
134
- {
135
- "type": "array",
136
- "items": {
137
- "type": "string"
138
- }
139
- },
140
- {
141
- "type": "string"
142
- }
143
- ],
144
- "description": "Extra arguments. You can pass them as follows: nx run project:target --args='--wait=100'. You can then use {args.wait} syntax to interpolate them in the workspace config file. See example [above](#chaining-commands-interpolating-args-and-setting-the-cwd)"
145
- },
146
- "envFile": {
147
- "type": "string",
148
- "description": "You may specify a custom .env file path."
149
- },
150
- "color": {
151
- "type": "boolean",
152
- "description": "Use colors when showing output of command.",
153
- "default": false
154
- },
155
- "cwd": {
156
- "type": "string",
157
- "description": "Current working directory of the commands. If it's not specified the commands will run in the workspace root, if a relative path is specified the commands will run in that path relative to the workspace root and if it's an absolute path the commands will run in that path."
158
- },
159
- "env": {
2
+ "version": 2,
3
+ "title": "Run Commands",
4
+ "description": "Run any custom commands with Nx.",
5
+ "type": "object",
6
+ "cli": "nx",
7
+ "outputCapture": "pipe",
8
+ "presets": [
9
+ {
10
+ "name": "Arguments forwarding",
11
+ "keys": ["commands"]
12
+ },
13
+ {
14
+ "name": "Custom done conditions",
15
+ "keys": ["commands", "readyWhen"]
16
+ },
17
+ {
18
+ "name": "Setting the cwd",
19
+ "keys": ["commands", "cwd"]
20
+ }
21
+ ],
22
+ "properties": {
23
+ "commands": {
24
+ "type": "array",
25
+ "description": "Commands to run in child process.",
26
+ "items": {
27
+ "oneOf": [
28
+ {
160
29
  "type": "object",
161
- "description": "Environment variables that will be made available to the commands. This property has priority over the `.env` files.",
162
- "additionalProperties": {
163
- "type": "string"
164
- }
165
- },
166
- "__unparsed__": {
167
- "hidden": true,
168
- "type": "array",
169
- "items": {
170
- "type": "string"
171
- },
172
- "$default": {
173
- "$source": "unparsed"
30
+ "properties": {
31
+ "command": {
32
+ "type": "string",
33
+ "description": "Command to run in child process."
34
+ },
35
+ "forwardAllArgs": {
36
+ "type": "boolean",
37
+ "description": "Whether arguments should be forwarded when interpolation is not present."
38
+ },
39
+ "prefix": {
40
+ "type": "string",
41
+ "description": "Prefix in front of every line out of the output"
42
+ },
43
+ "prefixColor": {
44
+ "type": "string",
45
+ "description": "Color of the prefix",
46
+ "enum": [
47
+ "black",
48
+ "red",
49
+ "green",
50
+ "yellow",
51
+ "blue",
52
+ "magenta",
53
+ "cyan",
54
+ "white"
55
+ ]
56
+ },
57
+ "color": {
58
+ "type": "string",
59
+ "description": "Color of the output",
60
+ "enum": [
61
+ "black",
62
+ "red",
63
+ "green",
64
+ "yellow",
65
+ "blue",
66
+ "magenta",
67
+ "cyan",
68
+ "white"
69
+ ]
70
+ },
71
+ "bgColor": {
72
+ "type": "string",
73
+ "description": "Background color of the output",
74
+ "enum": [
75
+ "bgBlack",
76
+ "bgRed",
77
+ "bgGreen",
78
+ "bgYellow",
79
+ "bgBlue",
80
+ "bgMagenta",
81
+ "bgCyan",
82
+ "bgWhite"
83
+ ]
84
+ },
85
+ "description": {
86
+ "type": "string",
87
+ "description": "An optional description useful for inline documentation purposes. It is not used as part of the execution of the command."
88
+ }
174
89
  },
175
- "x-priority": "internal"
176
- },
177
- "forwardAllArgs": {
178
- "type": "boolean",
179
- "description": "Whether arguments should be forwarded when interpolation is not present.",
180
- "default": true
90
+ "additionalProperties": false,
91
+ "required": ["command"]
92
+ },
93
+ {
94
+ "type": "string"
95
+ }
96
+ ]
97
+ },
98
+ "x-priority": "important"
99
+ },
100
+ "command": {
101
+ "oneOf": [
102
+ {
103
+ "type": "array",
104
+ "description": "Command to run in child process, but divided into parts.",
105
+ "items": {
106
+ "type": "string"
107
+ },
108
+ "x-priority": "important"
181
109
  },
182
- "tty": {
183
- "type": "boolean",
184
- "description": "Whether commands should be run with a tty terminal",
185
- "hidden": true
110
+ {
111
+ "type": "string",
112
+ "description": "Command to run in child process."
186
113
  }
114
+ ],
115
+ "type": "string",
116
+ "description": "Command to run in child process.",
117
+ "x-priority": "important"
118
+ },
119
+ "parallel": {
120
+ "type": "boolean",
121
+ "description": "Run commands in parallel.",
122
+ "default": true,
123
+ "x-priority": "important"
124
+ },
125
+ "readyWhen": {
126
+ "description": "String or array of strings to appear in `stdout` or `stderr` that indicate that the task is done. When running multiple commands, this option can only be used when `parallel` is set to `true`. If not specified, the task is done when all the child processes complete.",
127
+ "oneOf": [
128
+ { "type": "string" },
129
+ { "type": "array", "items": { "type": "string" } }
130
+ ]
187
131
  },
188
- "additionalProperties": true,
189
- "oneOf": [
132
+ "args": {
133
+ "oneOf": [
190
134
  {
191
- "required": ["commands"]
135
+ "type": "array",
136
+ "items": {
137
+ "type": "string"
138
+ }
192
139
  },
193
140
  {
194
- "required": ["command"]
141
+ "type": "string"
195
142
  }
196
- ],
197
- "examplesFile": "../../../docs/run-commands-examples.md"
143
+ ],
144
+ "description": "Extra arguments. You can pass them as follows: nx run project:target --args='--wait=100'. You can then use {args.wait} syntax to interpolate them in the workspace config file. See example [above](#chaining-commands-interpolating-args-and-setting-the-cwd)"
145
+ },
146
+ "envFile": {
147
+ "type": "string",
148
+ "description": "You may specify a custom .env file path."
149
+ },
150
+ "color": {
151
+ "type": "boolean",
152
+ "description": "Use colors when showing output of command.",
153
+ "default": false
154
+ },
155
+ "cwd": {
156
+ "type": "string",
157
+ "description": "Current working directory of the commands. If it's not specified the commands will run in the workspace root, if a relative path is specified the commands will run in that path relative to the workspace root and if it's an absolute path the commands will run in that path."
158
+ },
159
+ "env": {
160
+ "type": "object",
161
+ "description": "Environment variables that will be made available to the commands. This property has priority over the `.env` files.",
162
+ "additionalProperties": {
163
+ "type": "string"
164
+ }
165
+ },
166
+ "__unparsed__": {
167
+ "hidden": true,
168
+ "type": "array",
169
+ "items": {
170
+ "type": "string"
171
+ },
172
+ "$default": {
173
+ "$source": "unparsed"
174
+ },
175
+ "x-priority": "internal"
176
+ },
177
+ "forwardAllArgs": {
178
+ "type": "boolean",
179
+ "description": "Whether arguments should be forwarded when interpolation is not present.",
180
+ "default": true
181
+ },
182
+ "tty": {
183
+ "type": "boolean",
184
+ "description": "Whether commands should be run with a tty terminal",
185
+ "hidden": true
186
+ }
187
+ },
188
+ "additionalProperties": true,
189
+ "oneOf": [
190
+ {
191
+ "required": ["commands"]
192
+ },
193
+ {
194
+ "required": ["command"]
195
+ }
196
+ ],
197
+ "examplesFile": "../../../docs/run-commands-examples.md"
198
198
  }
@@ -1,28 +1,28 @@
1
1
  {
2
- "version": 2,
3
- "title": "Run Script",
4
- "description": "Run any NPM script of a project in the project's root directory.",
5
- "type": "object",
6
- "cli": "nx",
7
- "outputCapture": "pipe",
8
- "properties": {
9
- "script": {
10
- "type": "string",
11
- "description": "An npm script name in the `package.json` file of the project (e.g., `build`)."
12
- },
13
- "__unparsed__": {
14
- "hidden": true,
15
- "type": "array",
16
- "items": {
17
- "type": "string"
18
- },
19
- "$default": {
20
- "$source": "unparsed"
21
- },
22
- "x-priority": "internal"
23
- }
2
+ "version": 2,
3
+ "title": "Run Script",
4
+ "description": "Run any NPM script of a project in the project's root directory.",
5
+ "type": "object",
6
+ "cli": "nx",
7
+ "outputCapture": "pipe",
8
+ "properties": {
9
+ "script": {
10
+ "type": "string",
11
+ "description": "An npm script name in the `package.json` file of the project (e.g., `build`)."
24
12
  },
25
- "additionalProperties": true,
26
- "required": ["script"],
27
- "examplesFile": "../../../docs/run-script-examples.md"
13
+ "__unparsed__": {
14
+ "hidden": true,
15
+ "type": "array",
16
+ "items": {
17
+ "type": "string"
18
+ },
19
+ "$default": {
20
+ "$source": "unparsed"
21
+ },
22
+ "x-priority": "internal"
23
+ }
24
+ },
25
+ "additionalProperties": true,
26
+ "required": ["script"],
27
+ "examplesFile": "../../../docs/run-script-examples.md"
28
28
  }
@@ -356,7 +356,6 @@ export interface ProcessMetrics {
356
356
  /** Organized collection of process metrics with timestamp */
357
357
  export interface ProcessMetricsSnapshot {
358
358
  timestamp: number
359
- system: SystemMetrics
360
359
  mainCli?: ProcessTreeMetrics
361
360
  daemon?: ProcessTreeMetrics
362
361
  tasks: Record<string, Array<ProcessMetrics>>
@@ -410,15 +409,6 @@ export interface SystemInfo {
410
409
  totalMemory: number
411
410
  }
412
411
 
413
- /** System metrics (dynamic, changes every collection) */
414
- export interface SystemMetrics {
415
- cpu: number
416
- memory: number
417
- availableMemory: number
418
- swapUsed: number
419
- swapTotal: number
420
- }
421
-
422
412
  export interface Target {
423
413
  executor?: string
424
414
  inputs?: Array<JsInputs>
@@ -59,51 +59,55 @@ function __napi_rs_initialize_modules(__napiInstance) {
59
59
  __napiInstance.exports['__napi_register__get_transformable_outputs_5']?.()
60
60
  __napiInstance.exports['__napi_register__hash_array_6']?.()
61
61
  __napiInstance.exports['__napi_register__hash_file_7']?.()
62
- __napiInstance.exports['__napi_register__can_install_nx_console_8']?.()
63
- __napiInstance.exports['__napi_register__install_nx_console_9']?.()
64
- __napiInstance.exports['__napi_register__NxConsolePreferences_struct_10']?.()
65
- __napiInstance.exports['__napi_register__NxConsolePreferences_impl_14']?.()
66
- __napiInstance.exports['__napi_register__log_debug_15']?.()
67
- __napiInstance.exports['__napi_register__IS_WASM_16']?.()
68
- __napiInstance.exports['__napi_register__get_binary_target_17']?.()
69
- __napiInstance.exports['__napi_register__ImportResult_struct_18']?.()
70
- __napiInstance.exports['__napi_register__find_imports_19']?.()
71
- __napiInstance.exports['__napi_register__transfer_project_graph_20']?.()
72
- __napiInstance.exports['__napi_register__ExternalNode_struct_21']?.()
73
- __napiInstance.exports['__napi_register__Target_struct_22']?.()
74
- __napiInstance.exports['__napi_register__Project_struct_23']?.()
75
- __napiInstance.exports['__napi_register__ProjectGraph_struct_24']?.()
76
- __napiInstance.exports['__napi_register__HashPlanInspector_struct_25']?.()
77
- __napiInstance.exports['__napi_register__HashPlanInspector_impl_28']?.()
78
- __napiInstance.exports['__napi_register__HashPlanner_struct_29']?.()
79
- __napiInstance.exports['__napi_register__HashPlanner_impl_33']?.()
80
- __napiInstance.exports['__napi_register__HashDetails_struct_34']?.()
81
- __napiInstance.exports['__napi_register__HasherOptions_struct_35']?.()
82
- __napiInstance.exports['__napi_register__TaskHasher_struct_36']?.()
83
- __napiInstance.exports['__napi_register__TaskHasher_impl_39']?.()
84
- __napiInstance.exports['__napi_register__Task_struct_40']?.()
85
- __napiInstance.exports['__napi_register__TaskTarget_struct_41']?.()
86
- __napiInstance.exports['__napi_register__TaskResult_struct_42']?.()
87
- __napiInstance.exports['__napi_register__TaskGraph_struct_43']?.()
88
- __napiInstance.exports['__napi_register__FileData_struct_44']?.()
89
- __napiInstance.exports['__napi_register__InputsInput_struct_45']?.()
90
- __napiInstance.exports['__napi_register__FileSetInput_struct_46']?.()
91
- __napiInstance.exports['__napi_register__RuntimeInput_struct_47']?.()
92
- __napiInstance.exports['__napi_register__EnvironmentInput_struct_48']?.()
93
- __napiInstance.exports['__napi_register__ExternalDependenciesInput_struct_49']?.()
94
- __napiInstance.exports['__napi_register__DepsOutputsInput_struct_50']?.()
95
- __napiInstance.exports['__napi_register__NxJson_struct_51']?.()
96
- __napiInstance.exports['__napi_register__is_ai_agent_52']?.()
97
- __napiInstance.exports['__napi_register__FileLock_struct_53']?.()
98
- __napiInstance.exports['__napi_register__FileLock_impl_55']?.()
99
- __napiInstance.exports['__napi_register__WorkspaceContext_struct_56']?.()
100
- __napiInstance.exports['__napi_register__WorkspaceContext_impl_67']?.()
101
- __napiInstance.exports['__napi_register__WorkspaceErrors_68']?.()
102
- __napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_69']?.()
103
- __napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_70']?.()
104
- __napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_71']?.()
105
- __napiInstance.exports['__napi_register__FileMap_struct_72']?.()
106
- __napiInstance.exports['__napi_register____test_only_transfer_file_map_73']?.()
62
+ __napiInstance.exports['__napi_register__SupportedEditor_8']?.()
63
+ __napiInstance.exports['__napi_register__can_install_nx_console_9']?.()
64
+ __napiInstance.exports['__napi_register__can_install_nx_console_for_editor_10']?.()
65
+ __napiInstance.exports['__napi_register__install_nx_console_11']?.()
66
+ __napiInstance.exports['__napi_register__install_nx_console_for_editor_12']?.()
67
+ __napiInstance.exports['__napi_register__is_editor_installed_13']?.()
68
+ __napiInstance.exports['__napi_register__NxConsolePreferences_struct_14']?.()
69
+ __napiInstance.exports['__napi_register__NxConsolePreferences_impl_18']?.()
70
+ __napiInstance.exports['__napi_register__log_debug_19']?.()
71
+ __napiInstance.exports['__napi_register__IS_WASM_20']?.()
72
+ __napiInstance.exports['__napi_register__get_binary_target_21']?.()
73
+ __napiInstance.exports['__napi_register__ImportResult_struct_22']?.()
74
+ __napiInstance.exports['__napi_register__find_imports_23']?.()
75
+ __napiInstance.exports['__napi_register__transfer_project_graph_24']?.()
76
+ __napiInstance.exports['__napi_register__ExternalNode_struct_25']?.()
77
+ __napiInstance.exports['__napi_register__Target_struct_26']?.()
78
+ __napiInstance.exports['__napi_register__Project_struct_27']?.()
79
+ __napiInstance.exports['__napi_register__ProjectGraph_struct_28']?.()
80
+ __napiInstance.exports['__napi_register__HashPlanInspector_struct_29']?.()
81
+ __napiInstance.exports['__napi_register__HashPlanInspector_impl_32']?.()
82
+ __napiInstance.exports['__napi_register__HashPlanner_struct_33']?.()
83
+ __napiInstance.exports['__napi_register__HashPlanner_impl_37']?.()
84
+ __napiInstance.exports['__napi_register__HashDetails_struct_38']?.()
85
+ __napiInstance.exports['__napi_register__HasherOptions_struct_39']?.()
86
+ __napiInstance.exports['__napi_register__TaskHasher_struct_40']?.()
87
+ __napiInstance.exports['__napi_register__TaskHasher_impl_43']?.()
88
+ __napiInstance.exports['__napi_register__Task_struct_44']?.()
89
+ __napiInstance.exports['__napi_register__TaskTarget_struct_45']?.()
90
+ __napiInstance.exports['__napi_register__TaskResult_struct_46']?.()
91
+ __napiInstance.exports['__napi_register__TaskGraph_struct_47']?.()
92
+ __napiInstance.exports['__napi_register__FileData_struct_48']?.()
93
+ __napiInstance.exports['__napi_register__InputsInput_struct_49']?.()
94
+ __napiInstance.exports['__napi_register__FileSetInput_struct_50']?.()
95
+ __napiInstance.exports['__napi_register__RuntimeInput_struct_51']?.()
96
+ __napiInstance.exports['__napi_register__EnvironmentInput_struct_52']?.()
97
+ __napiInstance.exports['__napi_register__ExternalDependenciesInput_struct_53']?.()
98
+ __napiInstance.exports['__napi_register__DepsOutputsInput_struct_54']?.()
99
+ __napiInstance.exports['__napi_register__NxJson_struct_55']?.()
100
+ __napiInstance.exports['__napi_register__is_ai_agent_56']?.()
101
+ __napiInstance.exports['__napi_register__FileLock_struct_57']?.()
102
+ __napiInstance.exports['__napi_register__FileLock_impl_59']?.()
103
+ __napiInstance.exports['__napi_register__WorkspaceContext_struct_60']?.()
104
+ __napiInstance.exports['__napi_register__WorkspaceContext_impl_71']?.()
105
+ __napiInstance.exports['__napi_register__WorkspaceErrors_72']?.()
106
+ __napiInstance.exports['__napi_register__NxWorkspaceFiles_struct_73']?.()
107
+ __napiInstance.exports['__napi_register__NxWorkspaceFilesExternals_struct_74']?.()
108
+ __napiInstance.exports['__napi_register__UpdatedWorkspaceFiles_struct_75']?.()
109
+ __napiInstance.exports['__napi_register__FileMap_struct_76']?.()
110
+ __napiInstance.exports['__napi_register____test_only_transfer_file_map_77']?.()
107
111
  }
108
112
  export const FileLock = __napiModule.exports.FileLock
109
113
  export const HashPlanInspector = __napiModule.exports.HashPlanInspector
@@ -113,6 +117,7 @@ export const NxConsolePreferences = __napiModule.exports.NxConsolePreferences
113
117
  export const TaskHasher = __napiModule.exports.TaskHasher
114
118
  export const WorkspaceContext = __napiModule.exports.WorkspaceContext
115
119
  export const canInstallNxConsole = __napiModule.exports.canInstallNxConsole
120
+ export const canInstallNxConsoleForEditor = __napiModule.exports.canInstallNxConsoleForEditor
116
121
  export const copy = __napiModule.exports.copy
117
122
  export const expandOutputs = __napiModule.exports.expandOutputs
118
123
  export const findImports = __napiModule.exports.findImports
@@ -122,10 +127,13 @@ export const getTransformableOutputs = __napiModule.exports.getTransformableOutp
122
127
  export const hashArray = __napiModule.exports.hashArray
123
128
  export const hashFile = __napiModule.exports.hashFile
124
129
  export const installNxConsole = __napiModule.exports.installNxConsole
130
+ export const installNxConsoleForEditor = __napiModule.exports.installNxConsoleForEditor
125
131
  export const IS_WASM = __napiModule.exports.IS_WASM
126
132
  export const isAiAgent = __napiModule.exports.isAiAgent
133
+ export const isEditorInstalled = __napiModule.exports.isEditorInstalled
127
134
  export const logDebug = __napiModule.exports.logDebug
128
135
  export const remove = __napiModule.exports.remove
136
+ export const SupportedEditor = __napiModule.exports.SupportedEditor
129
137
  export const testOnlyTransferFileMap = __napiModule.exports.testOnlyTransferFileMap
130
138
  export const transferProjectGraph = __napiModule.exports.transferProjectGraph
131
139
  export const validateOutputs = __napiModule.exports.validateOutputs
Binary file