@lark-project/cli
Version:
飞书项目插件开发工具
16 lines (15 loc) • 734 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPluginAppType = void 0;
const local_plugin_config_1 = require("../local-plugin-config");
/**
* 读取当前工程的插件形态。所有需要按形态分流的下游(create 后置写盘、
* local-config / preflight 硬卡、publish 路径选择)一律走这里,
* 避免散落字符串 + 让"缺省=normal"这个兼容契约只在一处兜底。
*/
function getPluginAppType() {
var _a;
const config = (0, local_plugin_config_1.getLocalPluginConfig)();
return (_a = config === null || config === void 0 ? void 0 : config.app_type) !== null && _a !== void 0 ? _a : 'normal';
}
exports.getPluginAppType = getPluginAppType;