We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a17f9c7 commit cd16b3aCopy full SHA for cd16b3a
2 files changed
ecosystem-tests/deno/README.md
@@ -0,0 +1,10 @@
1
+# Deno Ecosystem Test
2
+
3
+This test runs a minimal workflow using `langbase@1.2.0` in a Deno environment.
4
5
+## How to Run
6
7
+- Make sure you have Deno installed: https://deno.com/manual/getting_started/installation
8
+- Run: `deno run --allow-net index.ts`
9
10
+Note: Deno does not use `package.json`. You must use an npm specifier or import map to use npm packages.
ecosystem-tests/deno/index.ts
@@ -0,0 +1,13 @@
+// @deno-types="npm:langbase@1.2.0"
+import {Workflow} from 'npm:langbase@1.2.0';
+async function main() {
+ const workflow = new Workflow({debug: true});
+ const result = await workflow.step({
+ id: 'hello',
+ run: async () => 'world',
+ });
+ console.log({result});
11
+}
12
13
+main().catch(console.error);
0 commit comments