UNPKG

@commercelayer/cli

Version:
13 lines (12 loc) 464 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const cli_core_1 = require("@commercelayer/cli-core"); const hook = async function (opts) { if (opts.Command.id !== 'plugins:update') return; this.log(`\n${cli_core_1.clColor.style.title('Current installed plugins')}\n`); const pluginsCmd = await this.config.findCommand('plugins')?.load(); await pluginsCmd?.run([]); this.log(''); }; exports.default = hook;