Skip to content

Commit a609f61

Browse files
fix: require Node.js v22.18.0+ for functions SDK (#672)
This change adds an "engines" field to the package.json files of the `@gram-ai/functions` requiring Node.js version 22.18.0 or higher. This ensures that we are in a runtime that supports import assertions and native support for running TypeScript files without experimental flags.
1 parent 3d05b2a commit a609f61

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.changeset/lemon-dragons-find.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@gram-ai/functions": patch
3+
---
4+
5+
Added an "engines" field to the package.json files of the `@gram-ai/functions`
6+
requiring Node.js version 22.18.0 or higher. This ensures that we are in a
7+
runtime that supports import assertions and native support for running
8+
TypeScript files without experimental flags.

ts-framework/functions/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"keywords": [],
99
"license": "MIT",
1010
"homepage": "https://github.com/speakeasy-api/gram",
11+
"engines": {
12+
"node": ">=22.18.0"
13+
},
1114
"repository": {
1215
"type": "git",
1316
"url": "https://github.com/speakeasy-api/gram.git",

0 commit comments

Comments
 (0)