Skip to main content
Command Line Interface

tsci transpile

tsci transpile converts your TypeScript/TSX circuit files into distributable JavaScript bundles (ESM, CommonJS, and type declarations). This is useful when you want to publish your circuit as a reusable module.

Usage

tsci transpile [file]

Arguments

  • file (optional) – path to the entry file. If omitted, the command uses the detected entrypoint (same logic as tsci build).

Output

The transpile command generates three files in the dist/ directory:

FileFormat
index.jsESM bundle
index.cjsCommonJS bundle
index.d.tsTypeScript type declarations
tip

tsci transpile is equivalent to running tsci build --transpile without the circuit JSON generation step. Use tsci build --transpile when you want both circuit.json and the transpiled output.