Skip to content

About this page

On this page

Programmatic API ​

Every surface the CLI and the extension use is also importable. The umbrella package re-exports the config model + sync runner and every workspace package, so a consumer can import the whole surface from the root or a single package through a subpath.

Where to start ​

ts
import { defineConfig, loadToolchainConfig, runSync, defaultSyncTasks } from '@deltabox/toolchain';

const { config, tokens, projectType } = await loadToolchainConfig(process.cwd());
await runSync({ tasks: defaultSyncTasks(), cwd: process.cwd(), config, tokens, projectType });