Open History to see the last commit
1import { execSync } from 'child_process'
2import { packages } from './config'
3import { Package } from './types'
4β
5export async function builder() {
6 await Promise.all(
7 packages.map(async (pkg) => {
8 buildPackage(pkg)
9 })
10 )
11}
12β
13function buildPackage(pkg: Package) {
14 execSync(`cd packages/${pkg.packageDir} && yarn build`, { stdio: 'inherit' })
15}