An internal only workspace that is not published to any registry.
Utilized for building vlt.
Bundle and Compile
import { bundle, compile } from '@vltpkg/infra-build'
const whichBinsToBundle = ['vlt'] as const
const bundleResult = await bundle({ outdir: './bundle', bins })
if (youWantToCompileAlso) {
compileResult = await compile({
source: bundleResult.outdir,
outdir: './compile',
bins,
})
}Compile Only
import { compile } from '@vltpkg/infra-build'
// This will also bundle to a temp dir and compile from that
const result = await compile({ outdir: './compile', bins })CLI
vlt-build --outdir=bundle --bins=vlt bundle
vlt-build --outdir=compile --bins=vlt compile