@cenk1cenk2/oclif-common 6.3.4 → 6.3.5

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1784,13 +1784,13 @@ var _Command = class _Command extends BaseCommand {
1784
1784
  oclif: this.config,
1785
1785
  command: this.ctor,
1786
1786
  config: {
1787
- logLevel: this.flags["log-level"],
1788
- isJson: this.flags.json
1787
+ logLevel: this.flags?.["log-level"] ?? LogLevels.INFO,
1788
+ isJson: this.flags?.json ?? false
1789
1789
  }
1790
1790
  }
1791
1791
  };
1792
1792
  const cli = CliModule.forRoot(options);
1793
- this.app = await CliModule.create(isHookedWithRegister(this) ? await this.register(cli, options) : cli);
1793
+ this.app = await CliModule.create(!err && isHookedWithRegister(this) ? await this.register(cli, options) : cli);
1794
1794
  const cs = this.app.get(ConfigService);
1795
1795
  this.logger = await this.app.resolve(LoggerService);
1796
1796
  this.app.useLogger(this.logger);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cenk1cenk2/oclif-common",
3
- "version": "6.3.4",
3
+ "version": "6.3.5",
4
4
  "description": "Oclif common package for oclif2 projects.",
5
5
  "repository": "https://gitlab.kilic.dev/libraries/oclif-tools",
6
6
  "type": "module",