nx 19.0.0-beta.2 → 19.0.0-beta.3

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,