nx 19.5.0-canary.20240712-0b0db78 → 19.5.0-canary.20240713-6f50d9f

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "19.5.0-canary.20240712-0b0db78",
3
+ "version": "19.5.0-canary.20240713-6f50d9f",
4
4
  "private": false,
5
5
  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
6
6
  "repository": {
@@ -71,7 +71,7 @@
71
71
  "yargs-parser": "21.1.1",
72
72
  "node-machine-id": "1.1.12",
73
73
  "ora": "5.3.0",
74
- "@nrwl/tao": "19.5.0-canary.20240712-0b0db78"
74
+ "@nrwl/tao": "19.5.0-canary.20240713-6f50d9f"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "@swc-node/register": "^1.8.0",
@@ -86,16 +86,16 @@
86
86
  }
87
87
  },
88
88
  "optionalDependencies": {
89
- "@nx/nx-darwin-x64": "19.5.0-canary.20240712-0b0db78",
90
- "@nx/nx-darwin-arm64": "19.5.0-canary.20240712-0b0db78",
91
- "@nx/nx-linux-x64-gnu": "19.5.0-canary.20240712-0b0db78",
92
- "@nx/nx-linux-x64-musl": "19.5.0-canary.20240712-0b0db78",
93
- "@nx/nx-win32-x64-msvc": "19.5.0-canary.20240712-0b0db78",
94
- "@nx/nx-linux-arm64-gnu": "19.5.0-canary.20240712-0b0db78",
95
- "@nx/nx-linux-arm64-musl": "19.5.0-canary.20240712-0b0db78",
96
- "@nx/nx-linux-arm-gnueabihf": "19.5.0-canary.20240712-0b0db78",
97
- "@nx/nx-win32-arm64-msvc": "19.5.0-canary.20240712-0b0db78",
98
- "@nx/nx-freebsd-x64": "19.5.0-canary.20240712-0b0db78"
89
+ "@nx/nx-darwin-x64": "19.5.0-canary.20240713-6f50d9f",
90
+ "@nx/nx-darwin-arm64": "19.5.0-canary.20240713-6f50d9f",
91
+ "@nx/nx-linux-x64-gnu": "19.5.0-canary.20240713-6f50d9f",
92
+ "@nx/nx-linux-x64-musl": "19.5.0-canary.20240713-6f50d9f",
93
+ "@nx/nx-win32-x64-msvc": "19.5.0-canary.20240713-6f50d9f",
94
+ "@nx/nx-linux-arm64-gnu": "19.5.0-canary.20240713-6f50d9f",
95
+ "@nx/nx-linux-arm64-musl": "19.5.0-canary.20240713-6f50d9f",
96
+ "@nx/nx-linux-arm-gnueabihf": "19.5.0-canary.20240713-6f50d9f",
97
+ "@nx/nx-win32-arm64-msvc": "19.5.0-canary.20240713-6f50d9f",
98
+ "@nx/nx-freebsd-x64": "19.5.0-canary.20240713-6f50d9f"
99
99
  },
100
100
  "nx-migrations": {
101
101
  "migrations": "./migrations.json",
@@ -4,6 +4,27 @@
4
4
  "title": "JSON schema for Nx projects",
5
5
  "type": "object",
6
6
  "properties": {
7
+ "name": {
8
+ "type": "string",
9
+ "description": "Project's name. Optional if specified in workspace.json"
10
+ },
11
+ "root": {
12
+ "type": "string",
13
+ "description": "Project's location relative to the root of the workspace"
14
+ },
15
+ "sourceRoot": {
16
+ "type": "string",
17
+ "description": "The location of project's sources relative to the root of the workspace"
18
+ },
19
+ "projectType": {
20
+ "type": "string",
21
+ "description": "Type of project supported",
22
+ "enum": ["library", "application"]
23
+ },
24
+ "generators": {
25
+ "type": "object",
26
+ "description": "List of default values used by generators"
27
+ },
7
28
  "namedInputs": {
8
29
  "type": "object",
9
30
  "description": "Named inputs used by inputs defined in targets",
@@ -112,6 +133,11 @@
112
133
  "cache": {
113
134
  "type": "boolean",
114
135
  "description": "Specifies if the given target should be cacheable"
136
+ },
137
+ "parallelism": {
138
+ "type": "boolean",
139
+ "default": true,
140
+ "description": "Whether this target can be run in parallel with other tasks"
115
141
  }
116
142
  }
117
143
  }
@@ -778,6 +778,6 @@ function getHelpTextFromTarget(projectName, targetName) {
778
778
  if (!command)
779
779
  throw new Error(`No help command found for ${projectName}:${targetName}`);
780
780
  return (0, node_child_process_1.execSync)(command, {
781
- cwd: (0, path_1.join)(workspace_root_1.workspaceRoot, project.data.root),
781
+ cwd: target.options?.cwd ?? workspace_root_1.workspaceRoot,
782
782
  }).toString();
783
783
  }
@@ -80,6 +80,10 @@ export interface Task {
80
80
  * Determines if a given task should be cacheable.
81
81
  */
82
82
  cache?: boolean;
83
+ /**
84
+ * Determines if a given task should be parallelizable.
85
+ */
86
+ parallelism: boolean;
83
87
  }
84
88
  /**
85
89
  * Graph of Tasks to be executed
@@ -212,4 +212,9 @@ export interface TargetConfiguration<T = any> {
212
212
  * Metadata about the target
213
213
  */
214
214
  metadata?: TargetMetadata;
215
+ /**
216
+ * Whether this target can be run in parallel with other tasks
217
+ * Default is true
218
+ */
219
+ parallelism?: boolean;
215
220
  }