@salesforce/cli 1.68.2 → 1.70.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/bin/dev CHANGED
@@ -6,6 +6,8 @@ require('ts-node').register();
6
6
 
7
7
  oclif.settings.tsnodeEnabled = true;
8
8
  oclif.settings.debug = true;
9
+ oclif.settings.performanceEnabled = true;
10
+
9
11
  process.env.NODE_ENV = 'development';
10
12
 
11
13
  oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'));
package/bin/run CHANGED
@@ -28,7 +28,7 @@ const channel = overrides.channel || 'stable';
28
28
  cli
29
29
  .create(version, channel)
30
30
  .run()
31
- .then(function (result) {
31
+ .then(function () {
32
32
  require('@oclif/core/flush')();
33
33
  })
34
34
  .catch(function (err) {
package/dist/cli.js CHANGED
@@ -10,10 +10,8 @@ exports.create = exports.configureAutoUpdate = exports.configureUpdateSites = ex
10
10
  const os = require("os");
11
11
  const path = require("path");
12
12
  const core_1 = require("@oclif/core");
13
- const plugin_version_1 = require("@oclif/plugin-version");
14
13
  const kit_1 = require("@salesforce/kit");
15
14
  const ts_types_1 = require("@salesforce/ts-types");
16
- const plugin_info_1 = require("@salesforce/plugin-info");
17
15
  const Debug = require("debug");
18
16
  const env_1 = require("./util/env");
19
17
  const debug = Debug('sf');
@@ -100,22 +98,23 @@ function debugCliInfo(version, channel, env, config) {
100
98
  debugSection('ARGS', process.argv.map((arg, i) => [i.toString(), arg]));
101
99
  }
102
100
  function create(version, channel, run, env = env_1.default) {
101
+ core_1.settings.performanceEnabled = true;
103
102
  const root = path.resolve(__dirname, '..');
104
103
  // eslint-disable-next-line @typescript-eslint/no-var-requires
105
104
  const pjson = require(path.resolve(__dirname, '..', 'package.json'));
106
105
  const args = process.argv.slice(2);
107
106
  return {
108
107
  async run() {
109
- const config = new core_1.Config({ name: (0, ts_types_1.get)(pjson, 'oclif.bin'), root, version, channel });
108
+ const config = new core_1.Config({
109
+ name: (0, ts_types_1.get)(pjson, 'oclif.bin'),
110
+ root,
111
+ version,
112
+ channel,
113
+ });
110
114
  await config.load();
111
115
  configureUpdateSites(config, env);
112
116
  configureAutoUpdate(env);
113
117
  debugCliInfo(version, channel, env, config);
114
- if (args[0] === 'doctor') {
115
- // The doctor command requires CLI version details obtained from the CLI's oclif config.
116
- const versionDetail = await plugin_version_1.VersionCommand.run(['--verbose', '--json']);
117
- plugin_info_1.Doctor.init(config, versionDetail);
118
- }
119
118
  // Example of how run is used in a test https://github.com/salesforcecli/cli/pull/171/files#diff-1deee0a575599b2df117c280da319f7938aaf6fdb0c04bcdbde769dbf464be69R46
120
119
  return run ? run(args, config) : (0, core_1.run)(args, config);
121
120
  },