mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-10 18:03:01 +00:00
* chore: npm run setup & npm run start 命令适配 win 系统 * chore: 补上漏掉的 await * chore: 参考 antfu 大神的轮子 ni 源码,改用更为知名的命令行库 * chore: npm run start 命令适配 win 系统 * chore: 调整样式
11 lines
401 B
JavaScript
11 lines
401 B
JavaScript
#!/usr/bin/env node
|
|
const os = require('os');
|
|
const execa = require('execa');
|
|
|
|
async function start() {
|
|
const [, , pkgName = '@alilc/lowcode-ignitor'] = process.argv;
|
|
await execa.command(`lerna exec --scope ${pkgName} -- npm start`, { stdio: 'inherit', encoding: 'utf-8' });
|
|
}
|
|
|
|
os.type() === 'Windows_NT' ? start() : execa.command('scripts/start.sh', { stdio: 'inherit', encoding: 'utf-8' });
|