We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c86015 commit 289adc8Copy full SHA for 289adc8
src/hooks/jitPluginInstall.ts
@@ -21,7 +21,12 @@ const hook: Hook<'jit_plugin_not_installed'> = async function (opts) {
21
command: opts.command.id,
22
});
23
24
- await opts.config.runCommand('plugins:install', [`${opts.command.pluginName}@${opts.pluginVersion}`]);
+ const jitInstallArgv = [`${opts.command.pluginName}@${opts.pluginVersion}`];
25
+ if (opts.argv.includes('--json')) {
26
+ // pass along --json arg to plugins:install
27
+ jitInstallArgv.push('--json');
28
+ }
29
+ await opts.config.runCommand('plugins:install', jitInstallArgv);
30
31
global.cliTelemetry?.record({
32
eventName: 'JIT_INSTALL_SUCCESS',
0 commit comments