roymondchen de47514f69 feat: 完善迭代器嵌套使用问题,重构事件配置处理代码
* feat(editor,core,data-source,dep,schema,ui,utils,vue-runtime-help): 完善迭代器

* test: 完善测试用例

* chore: 构建

* feat: 迭代器嵌套事件传递数据

---------

Co-authored-by: roymondchen <roymondchen@tencent.com>
2024-12-09 20:21:34 +08:00

33 lines
843 B
JavaScript

import execa from 'execa';
import minimist from 'minimist';
const { type } = minimist(process.argv.slice(2));
const run = (bin, args, opts = {}) => execa(bin, args, { stdio: 'inherit', ...opts });
const build = (pkg) => run('pnpm', ['--filter', `@tmagic/${pkg}`, type ? 'build:type' : 'build']);
const main = async () => {
// 按照依赖顺序构建
build('cli');
await Promise.all([
(async () => {
for (const pkg of ['schema', 'utils', 'dep', 'data-source', 'core', 'stage']) {
await build(pkg);
}
})(),
(async () => {
for (const pkg of ['design', 'element-plus-adapter', 'tdesign-vue-next-adapter']) {
await build(pkg);
}
})(),
]);
for (const pkg of ['form', 'table', 'editor', 'vue-runtime-help', 'tmagic-form-runtime', 'ui']) {
await build(pkg);
}
};
main();