Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

build

@vltpkg/infra-build

An internal only workspace that is not published to any registry.

Utilized for building vlt.

Usage

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