UNPKG

@lark-project/cli

Version:

飞书项目插件开发工具

31 lines (30 loc) 1.23 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.addReleaseCommand = void 0; // ⚠️ 改命令名 / flag / alias 时,同步 grep `lpm` skills/ .claude/skills/ 修文档引用 const path_1 = __importDefault(require("path")); const types_1 = require("../../types"); const run_script_1 = __importDefault(require("../../utils/run-script")); function addReleaseCommand(program) { program .command('release') .description('Bundles the plugin project for production and upload.') .option('--source-type <source-type>', 'Config source: local or remote') .action((options) => { const { sourceType } = options; const mainArgs = process.argv.slice(3); (0, run_script_1.default)(path_1.default.join(__dirname, '../dispatcher'), [ '--command', types_1.ECommandName.release, '--payload', JSON.stringify({ mainArgs, source_type: sourceType, }), ]); }); } exports.addReleaseCommand = addReleaseCommand;