From f20e90ffb08dee4760c72a47a282b46668e06d9b Mon Sep 17 00:00:00 2001 From: Ifedayo Prince Oni Date: Thu, 20 Nov 2025 21:56:22 +0100 Subject: [PATCH 1/2] fix(compiler): update import path to always use the posix forward slash seperator --- packages/compiler/src/compiler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler/src/compiler.ts b/packages/compiler/src/compiler.ts index 2f58c15..08ef018 100644 --- a/packages/compiler/src/compiler.ts +++ b/packages/compiler/src/compiler.ts @@ -101,7 +101,7 @@ export class Compiler { const manifestDir = path.dirname(path.resolve('./dist/flowcraft.manifest.ts')) for (const [uses, { importPath, exportName }] of Object.entries(registry)) { const relativePath = path.relative(manifestDir, importPath).replace(/\.ts$/, '') - imports.push(`import { ${exportName} } from '${relativePath}'`) + imports.push(`import { ${exportName} } from '${relativePath.split(path.sep).join(path.posix.sep)}'`) registryEntries.push(` '${uses}': ${exportName}`) } From e4243ad26f8b5f4c9a0bfb89facfa6b8261d95a5 Mon Sep 17 00:00:00 2001 From: Ifedayo Prince Oni Date: Thu, 20 Nov 2025 22:02:13 +0100 Subject: [PATCH 2/2] fix(docs): resolve syntax and build errors in examples on the getting-started page --- docs/src/guide/getting-started.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/guide/getting-started.md b/docs/src/guide/getting-started.md index b423879..47887d8 100644 --- a/docs/src/guide/getting-started.md +++ b/docs/src/guide/getting-started.md @@ -54,7 +54,7 @@ async function run() { // "serializedContext": "{\"value\":42,\"_outputs.start\":42,\"_inputs.double\":42,\"_outputs.double\":84}", // "status": "completed" // } - +} run() ``` @@ -77,12 +77,12 @@ export async function simpleWorkflow(value: number) { } /** @step */ -async function startNode(value: number) { +export async function startNode(value: number) { return value } /** @step */ -async function doubleNode(input: number) { +export async function doubleNode(input: number) { return input * 2 } ```