Skip to content

Commit 73c3253

Browse files
committed
fix: make ffi-napi optional to prevent CI build failures
- Move ffi-napi, ref-napi, ref-struct-napi to optionalDependencies - Prevents compilation errors in CI with Node.js 20.x - Embedded mode still works when dependencies are installed - Server mode (primary use case) works without FFI dependencies
1 parent c943f75 commit 73c3253

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@
7979
"typescript": "^5.3.3"
8080
},
8181
"dependencies": {
82-
"@grpc/grpc-js": "^1.14.3",
83-
"@grpc/proto-loader": "^0.8.0",
84-
"uuid": "^9.0.0",
82+
"@grpc/grpc-js": "^1.12.4",
83+
"@grpc/proto-loader": "^0.7.15",
84+
"uuid": "^9.0.0"
85+
},
86+
"optionalDependencies": {
87+
"posthog-node": "^4.18.0",
8588
"ffi-napi": "^4.0.3",
8689
"ref-napi": "^3.0.3",
8790
"ref-struct-napi": "^1.1.1"
88-
},
89-
"optionalDependencies": {
90-
"posthog-node": "^4.18.0"
9191
}
92-
}
92+
}

0 commit comments

Comments
 (0)