Skip to content

Function: bootstrapWorkspace()

bootstrapWorkspace(root, projenSpecifier?): void

Turn a folder into a functioning dbx-tools workspace: bun init, seed the package.json workspace fields (bun reads workspaces/trustedDependencies from the manifest), add projen/typescript + the engine package, write a minimal .projenrc.ts, synth once (with PROJEN_DISABLE_POST), then install. Does not run barrels - run bun run barrels or a full projen synth post-install to generate package barrels.

Every step is idempotent and self-guarded, so this is safe to run against a folder that ALREADY has a hand-authored .projenrc.ts (and even a committed package.json) but is missing the installed toolchain - e.g. a freshly copied project whose generated files (including manifests) are gitignored. In that case bun init and the .projenrc.ts scaffold are skipped, but the engine + projen are (re)installed so the subsequent synth can regenerate everything. See seedToolchain.

string

string = ...

void