nx 19.0.0-canary.20240420-9ca53b7 → 19.0.0-canary.20240423-b37bfdb

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.
@@ -22,6 +22,7 @@ export interface RunCommandsOptions extends Json {
22
22
  readyWhen?: string;
23
23
  cwd?: string;
24
24
  env?: Record<string, string>;
25
+ forwardAllArgs?: boolean;
25
26
  args?: string | string[];
26
27
  envFile?: string;
27
28
  __unparsed__: string[];
@@ -39,6 +39,7 @@ const propKeys = [
39
39
  'usePty',
40
40
  'streamOutput',
41
41
  'verbose',
42
+ 'forwardAllArgs',
42
43
  ];
43
44
  async function default_1(options, context) {
44
45
  registerProcessListener();
@@ -135,7 +136,7 @@ function normalizeOptions(options) {
135
136
  options.parsedArgs = parseArgs(unparsedCommandArgs, options.unknownOptions, options.args);
136
137
  options.unparsedCommandArgs = unparsedCommandArgs;
137
138
  options.commands.forEach((c) => {
138
- c.command = interpolateArgsIntoCommand(c.command, options, c.forwardAllArgs ?? true);
139
+ c.command = interpolateArgsIntoCommand(c.command, options, c.forwardAllArgs ?? options.forwardAllArgs ?? true);
139
140
  });
140
141
  return options;
141
142
  }
@@ -135,6 +135,11 @@
135
135
  "$source": "unparsed"
136
136
  },
137
137
  "x-priority": "internal"
138
+ },
139
+ "forwardAllArgs": {
140
+ "type": "boolean",
141
+ "description": "Whether arguments should be forwarded when interpolation is not present.",
142
+ "default": true
138
143
  }
139
144
  },
140
145
  "additionalProperties": true,
@@ -388,7 +388,7 @@ function mergeTargetConfigurations(target, baseTarget, projectConfigSourceMap, s
388
388
  const { configurations: defaultConfigurations, options: defaultOptions, ...baseTargetProperties } = baseTarget ?? {};
389
389
  // Target is "compatible", e.g. executor is defined only once or is the same
390
390
  // in both places. This means that it is likely safe to merge
391
- const isCompatible = isCompatibleTarget(baseTargetProperties, target);
391
+ const isCompatible = isCompatibleTarget(baseTarget ?? {}, target);
392
392
  // If the targets are not compatible, we would normally overwrite the old target
393
393
  // with the new one. However, we have a special case for targets that have the
394
394
  // ONLY_MODIFIES_EXISTING_TARGET symbol set. This prevents the merged target