Skip to content

Commit b09ac63

Browse files
committed
chore: remove all remaining bun references
Replace all remaining bun references with pnpm or node: - Remove bun from package.json devEngines - Update AI SDK installation error message (bun -> pnpm) - Update example run comment to use node directly - Update installation instructions in examples (bun -> pnpm) - Replace bun-types with node types in examples tsconfig.json Node v24 can run TypeScript files directly without additional tools.
1 parent b37e05d commit b09ac63

5 files changed

Lines changed: 5 additions & 10 deletions

File tree

examples/human-in-the-loop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* This allows for more granular control over tool execution and validation.
44
*
55
* Run this with:
6-
* bun run examples/human-in-the-loop.ts
6+
* node examples/human-in-the-loop.ts
77
*/
88

99
import { assert } from 'node:console';

examples/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* # Using yarn
99
* yarn add @stackone/ai
1010
*
11-
* # Using bun
12-
* bun add @stackone/ai
11+
* # Using pnpm
12+
* pnpm add @stackone/ai
1313
* ```
1414
*
1515
* # Authentication

examples/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"module": "ESNext",
1010
"moduleResolution": "bundler",
1111
"lib": ["es2022"],
12-
"types": ["bun-types"]
12+
"types": ["node"]
1313
},
1414
"include": ["**/*.ts"],
1515
"exclude": ["node_modules"]

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,6 @@
9898
"name": "node",
9999
"version": "^24.11.0",
100100
"onFail": "download"
101-
},
102-
{
103-
"name": "bun",
104-
"version": "^1.3.2",
105-
"onFail": "download"
106101
}
107102
]
108103
}

src/tool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export class BaseTool {
203203
jsonSchema = ai.jsonSchema;
204204
} catch {
205205
throw new StackOneError(
206-
'AI SDK is not installed. Please install it with: npm install ai@4.x|5.x or bun add ai@4.x|5.x'
206+
'AI SDK is not installed. Please install it with: npm install ai@4.x|5.x or pnpm add ai@4.x|5.x'
207207
);
208208
}
209209

0 commit comments

Comments
 (0)