ts2workflows is a transpiler that converts TypeScript code into GCP Workflows YAML programs, enabling type-safe workflow development. Current version is 0.15.0. It supports a subset of TypeScript features, includes type annotations for Workflows standard library and connectors, and provides CLI for batch compilation. Key differentiators: enables type-checking of workflow sources with tsc, integrates with TypeScript ecosystem, and produces self-contained YAML with subworkflows via --link. Requires Node >=20 and TypeScript >=5.5.4 <6.0.
npm install ts2workflowsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows a basic workflow function with HTTP call and transpilation command.
Upgrade Node and TypeScript to compatible versions
Review language_reference.md before writing workflows
Use --link flag to generate self-contained YAML with all subworkflows
Always provide --project when using --link
npm install ts2workflows and use correct import path: 'ts2workflows/types/workflowslib'
Use ESM import: import { transpile } from 'ts2workflows'Rewrite using supported syntax per language_reference.md