Skip to content

Commit a17f9c7

Browse files
committed
📦 NEW: Bun
1 parent 2405396 commit a17f9c7

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

ecosystem-tests/bun/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Bun Ecosystem Test
2+
3+
This test runs a minimal workflow using `[email protected]` in a Bun environment.
4+
5+
## How to Run
6+
7+
- Make sure you have Bun installed: https://bun.sh/docs/installation
8+
- Install dependencies: `bun install`
9+
- Run: `bun run index.ts`

ecosystem-tests/bun/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import {Workflow} from 'langbase';
2+
3+
async function main() {
4+
const workflow = new Workflow({debug: true});
5+
const result = await workflow.step({
6+
id: 'hello',
7+
run: async () => 'world',
8+
});
9+
console.log({result});
10+
}
11+
12+
main().catch(console.error);

ecosystem-tests/bun/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "bun-test",
3+
"version": "1.0.0",
4+
"type": "module",
5+
"private": true,
6+
"dependencies": {
7+
"langbase": "1.2.0"
8+
}
9+
}

0 commit comments

Comments
 (0)