Skip to content

Latest commit

 

History

History

fetch-esm

Fetch ESM

Sample for configuring a Temporal project with TypeScript and ES Modules.

Fundamental difference from CommonJS:

Running this sample

  1. temporal server start-dev to start Temporal Server.
  2. npm install to install dependencies.
  3. npm run start.watch to start the Worker.
  4. In another shell, npm run workflow to run the Workflow.

The Workflow should return:

Hello, Temporal!