From b486ef173b27ba465cc8fddf53e3a53d339f8734 Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Wed, 15 Sep 2021 16:28:32 -0600 Subject: [PATCH] fix: update to latest oclif/core and enable json flag --- package.json | 2 +- src/sfCommand.ts | 1 + yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 2f23e1c9e..709fcf114 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ } }, "dependencies": { - "@oclif/core": "^0.5.37", + "@oclif/core": "^0.5.38", "@salesforce/core": "^3.6.1", "@salesforce/kit": "^1.5.17", "@salesforce/ts-types": "^1.5.20", diff --git a/src/sfCommand.ts b/src/sfCommand.ts index 8283777f8..4dbd71a61 100644 --- a/src/sfCommand.ts +++ b/src/sfCommand.ts @@ -22,6 +22,7 @@ export interface SfCommandInterface extends Interfaces.Command { */ export abstract class SfCommand extends Command { + public static enableJsonFlag = true; public static configurationVariablesSection?: HelpSection; public static envVariablesSection?: HelpSection; public static errorCodes?: HelpSection; diff --git a/yarn.lock b/yarn.lock index 266a92691..6ab59c28e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -430,10 +430,10 @@ is-wsl "^2.1.1" tslib "^2.0.0" -"@oclif/core@^0.5.37": - version "0.5.37" - resolved "https://registry.yarnpkg.com/@oclif/core/-/core-0.5.37.tgz#acf8815bcb405851be59f2de5bafe74171f8dd8f" - integrity sha512-9tTIGfDJIGD7jt4jSCpIhwaALtztzTHGCXuKyj7PYtF0zs0/BayPa7YEFqJjaTjO3Ea53awxdIbL6kLS7bLyTg== +"@oclif/core@^0.5.38": + version "0.5.38" + resolved "https://registry.npmjs.org/@oclif/core/-/core-0.5.38.tgz#293e14e426fa340d68c549171925c6c18884b995" + integrity sha512-mR4YKwGAdVhN9mN7DEPnRl/fopmVu2C4xlJYI68+6nW/uZQzZ9WjsiRgjwAMOWdAju8mG35+sVlwSg0hDIlCCA== dependencies: "@oclif/linewrap" "^1.0.0" chalk "^4.1.0"