Skip to main content
Build and bundle commands compile your TypeScript code and generate type definitions.

bp build

Generate types and bundle code:
This command:
  1. Runs bp generate to create type definitions
  2. Runs bp bundle to compile code

bp bundle

Bundle code without generating types:
Creates:
  • CommonJS bundle: .botpress/dist/index.cjs
  • ESM bundle: .botpress/dist/index.mjs

Options

—workDir

Specify working directory:

Build output

Build creates:

bp generate

Generate only type definitions:
Alias: bp gen Generates TypeScript types in .botpress/ directory.