@salesforce/cli 1.68.1 → 1.69.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
@@ -100,13 +100,19 @@ function debugCliInfo(version, channel, env, config) {
100
100
  debugSection('ARGS', process.argv.map((arg, i) => [i.toString(), arg]));
101
101
  }
102
102
  function create(version, channel, run, env = env_1.default) {
103
+ core_1.settings.performanceEnabled = true;
103
104
  const root = path.resolve(__dirname, '..');
104
105
  // eslint-disable-next-line @typescript-eslint/no-var-requires
105
106
  const pjson = require(path.resolve(__dirname, '..', 'package.json'));
106
107
  const args = process.argv.slice(2);
107
108
  return {
108
109
  async run() {
109
- const config = new core_1.Config({ name: (0, ts_types_1.get)(pjson, 'oclif.bin'), root, version, channel });
110
+ const config = new core_1.Config({
111
+ name: (0, ts_types_1.get)(pjson, 'oclif.bin'),
112
+ root,
113
+ version,
114
+ channel,
115
+ });
110
116
  await config.load();
111
117
  configureUpdateSites(config, env);
112
118
  configureAutoUpdate(env);