#!/usr/bin/env bash

tnpm i -g lerna @ali/tyarn

rm -rf node_modules package-lock.json yarn.lock
lerna clean -y
find ./packages -type f -name "package-lock.json" -exec rm -f {} \;

lerna bootstrap

lerna exec --stream \
  --scope @alilc/lowcode-editor-core \
  --scope @alilc/lowcode-types \
  --scope @alilc/lowcode-utils \
  -- npm run build
