Skip to content
Source
Sign inSign up
TanStack/bling
Open History to see the last commit

builder.ts

15 lines359 Bytes

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 )
12​
13function buildPackage(pkg: Package) {
14 execSync(`cd packages/${pkg.packageDir} && yarn build`, { stdio: 'inherit' })