Sample for configuring a Temporal project with TypeScript and ES Modules.
Fundamental difference from CommonJS:
package.jsonhas"type": "module"attribute.tsconfig.jsonoutputs inesnextformat.- Imports must include the
.jsor.tsfile extension.
temporal server start-devto start Temporal Server.npm installto install dependencies.npm run start.watchto start the Worker.- In another shell,
npm run workflowto run the Workflow.
The Workflow should return:
Hello World!