message: recycle: Adjust module lookup for CLI commands
diff: @@ -82,8 +82,12 @@ export class JovoCli {
  for (const pluginId of plugins) {
  // Load plugin from global 'node_modules/'.
  - const pluginPath: string = joinPaths(npm.packages, pluginId, 'dist', 'index.js');
  + const pluginPaths: string[] = [
  + joinPaths(npm.packages, '@jovotech', 'cli', 'node_modules', pluginId, 'dist', 'index.js'),
  + joinPaths(npm.packages, pluginId, 'dist', 'index.js'),
  + ];
  + for (const pluginPath of pluginPaths) {
  // If the plugin does not exist, skip it quietly.
  if (!existsSync(pluginPath)) {
  continue;
  @@ -92,6 +96,8 @@ export class JovoCli {
  const plugin: JovoCliPlugin = new (require(pluginPath).default)();
  globalPlugins.push(plugin);
  + break;
  + }
  }
  return globalPlugins;
  