nx 23.0.0-beta.0 → 23.0.0-pr.35413.460eeef

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.
Files changed (44) hide show
  1. package/dist/src/command-line/run/run-one.js +2 -3
  2. package/dist/src/command-line/yargs-utils/shared-options.d.ts +0 -2
  3. package/dist/src/command-line/yargs-utils/shared-options.js +0 -7
  4. package/dist/src/config/workspace-json-project-json.d.ts +0 -10
  5. package/dist/src/core/graph/main.js +1 -1
  6. package/dist/src/daemon/server/handle-hash-tasks.js +1 -1
  7. package/dist/src/daemon/server/project-graph-incremental-recomputation.d.ts +4 -1
  8. package/dist/src/daemon/server/project-graph-incremental-recomputation.js +20 -11
  9. package/dist/src/executors/run-commands/running-tasks.js +16 -29
  10. package/dist/src/executors/utils/convert-nx-executor.js +2 -2
  11. package/dist/src/hasher/create-task-hasher.js +1 -1
  12. package/dist/src/native/nx.wasm32-wasi.debug.wasm +0 -0
  13. package/dist/src/native/nx.wasm32-wasi.wasm +0 -0
  14. package/dist/src/project-graph/build-project-graph.d.ts +4 -2
  15. package/dist/src/project-graph/build-project-graph.js +7 -2
  16. package/dist/src/project-graph/file-map-utils.d.ts +4 -2
  17. package/dist/src/project-graph/file-map-utils.js +3 -0
  18. package/dist/src/project-graph/plugins/get-plugins.d.ts +0 -15
  19. package/dist/src/project-graph/plugins/get-plugins.js +3 -21
  20. package/dist/src/project-graph/project-graph.js +6 -7
  21. package/dist/src/project-graph/utils/project-configuration/name-substitution-manager.d.ts +64 -40
  22. package/dist/src/project-graph/utils/project-configuration/name-substitution-manager.js +411 -182
  23. package/dist/src/project-graph/utils/project-configuration/project-nodes-manager.d.ts +4 -10
  24. package/dist/src/project-graph/utils/project-configuration/project-nodes-manager.js +8 -22
  25. package/dist/src/project-graph/utils/project-configuration/source-maps.d.ts +61 -4
  26. package/dist/src/project-graph/utils/project-configuration/source-maps.js +59 -14
  27. package/dist/src/project-graph/utils/project-configuration/target-merging.d.ts +4 -1
  28. package/dist/src/project-graph/utils/project-configuration/target-merging.js +136 -261
  29. package/dist/src/project-graph/utils/project-configuration/target-normalization.js +7 -0
  30. package/dist/src/project-graph/utils/project-configuration-utils.d.ts +9 -33
  31. package/dist/src/project-graph/utils/project-configuration-utils.js +65 -153
  32. package/dist/src/project-graph/utils/retrieve-workspace-files.d.ts +3 -6
  33. package/dist/src/project-graph/utils/retrieve-workspace-files.js +13 -32
  34. package/dist/src/tasks-runner/running-tasks/node-child-process.js +1 -2
  35. package/dist/src/utils/delayed-spinner.js +2 -2
  36. package/dist/src/utils/versions.js +4 -1
  37. package/package.json +14 -14
  38. package/dist/src/project-graph/utils/project-configuration/target-defaults.d.ts +0 -16
  39. package/dist/src/project-graph/utils/project-configuration/target-defaults.js +0 -117
  40. package/dist/src/project-graph/utils/project-configuration/utils.d.ts +0 -23
  41. package/dist/src/project-graph/utils/project-configuration/utils.js +0 -164
  42. /package/{schemas → dist/schemas}/nx-schema.json +0 -0
  43. /package/{schemas → dist/schemas}/project-schema.json +0 -0
  44. /package/{schemas → dist/schemas}/workspace-schema.json +0 -0
@@ -103,8 +103,7 @@ function parseRunOneOptions(cwd, parsedArgs, projectGraph, nxJson) {
103
103
  let project;
104
104
  let target;
105
105
  let configuration;
106
- if (typeof parsedArgs[PROJECT_TARGET_CONFIG] === 'string' &&
107
- parsedArgs[PROJECT_TARGET_CONFIG].lastIndexOf(':') > 0) {
106
+ if (parsedArgs[PROJECT_TARGET_CONFIG]?.lastIndexOf(':') > 0) {
108
107
  // run case
109
108
  [project, target, configuration] = (0, split_target_1.splitTarget)(parsedArgs[PROJECT_TARGET_CONFIG], projectGraph, { currentProject: defaultProjectName });
110
109
  // this is to account for "nx npmscript:dev"
@@ -116,7 +115,7 @@ function parseRunOneOptions(cwd, parsedArgs, projectGraph, nxJson) {
116
115
  else if (parsedArgs.target) {
117
116
  target = parsedArgs.target;
118
117
  }
119
- else if (typeof parsedArgs[PROJECT_TARGET_CONFIG] === 'string') {
118
+ else if (parsedArgs[PROJECT_TARGET_CONFIG]) {
120
119
  // If project:target:configuration exists but has no colon, check if it's a project with run target
121
120
  if (projectGraph.nodes[parsedArgs[PROJECT_TARGET_CONFIG]]?.data?.targets?.run) {
122
121
  target = 'run';
@@ -78,8 +78,6 @@ export declare function withRunOneOptions(yargs: Argv): Argv<{
78
78
  outputStyle: OutputStyle;
79
79
  } & RunOptions & {
80
80
  project: string;
81
- } & {
82
- target: string;
83
81
  } & {
84
82
  help: boolean;
85
83
  }>;
@@ -316,13 +316,6 @@ function withRunOneOptions(yargs) {
316
316
  .option('project', {
317
317
  describe: 'Target project.',
318
318
  type: 'string',
319
- alias: 'p',
320
- })
321
- .option('target', {
322
- describe: 'Target to run. Useful when the target name contains a colon, which conflicts with the positional `project:target:configuration` form.',
323
- type: 'string',
324
- alias: 't',
325
- requiresArg: true,
326
319
  })
327
320
  .option('help', {
328
321
  describe: 'Show Help.',
@@ -260,14 +260,4 @@ export interface TargetConfiguration<T = any> {
260
260
  * is up to date.
261
261
  */
262
262
  syncGenerators?: string[];
263
- /**
264
- * Spread token used when merging target configurations. When set to `true`,
265
- * base (inferred) values take priority over this target's values for any
266
- * shared keys — effectively "only add new keys without overwriting inferred
267
- * values". Keys that do not exist in the base target are still added.
268
- *
269
- * The position of `'...'` in the object's key order follows standard
270
- * last-write-wins semantics with {@link https://nx.dev/reference/project-configuration#spread-token}.
271
- */
272
- '...'?: true;
273
263
  }