@salesforce/cli 2.151.6 → 2.152.0

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/dist/flags.js CHANGED
@@ -27,9 +27,7 @@ export function preprocessCliFlags(process) {
27
27
  process.env.SF_DEBUG = '1';
28
28
  process.env.SF_ENV = 'development';
29
29
  // set `SF_LOG_LEVEL` to `trace` if it wasn't specified
30
- if (process.env.SF_LOG_LEVEL === undefined) {
31
- process.env.SF_LOG_LEVEL = 'trace';
32
- }
30
+ process.env.SF_LOG_LEVEL ??= 'trace';
33
31
  // need to calculate indexOf --dev-debug here because it might've changed based on --debug-filter
34
32
  process.argv.splice(process.argv.indexOf('--dev-debug'), 1);
35
33
  }