mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 08:06:00 +00:00
feat: remove cloudflare adapter dependency to nodejs_compat
- adjusted bindings extraction to not rely on node inspect anymore - added new vite export that uses nodejs apis
This commit is contained in:
@@ -6,15 +6,15 @@
|
||||
"scripts": {
|
||||
"deploy": "wrangler deploy",
|
||||
"dev": "wrangler dev",
|
||||
"bknd-typegen": "PROXY=1 npx bknd types",
|
||||
"bknd-typegen": "PROXY=1 node_modules/.bin/bknd types",
|
||||
"typegen": "wrangler types && npm run bknd-typegen",
|
||||
"predev": "npm run typegen"
|
||||
"postinstall": "npm run typegen"
|
||||
},
|
||||
"dependencies": {
|
||||
"bknd": "file:../../app"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^5.9.2",
|
||||
"wrangler": "^4.34.0"
|
||||
"typescript": "^5.9.3",
|
||||
"wrangler": "^4.46.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "bknd-cf-worker-example",
|
||||
"main": "src/index.ts",
|
||||
"compatibility_date": "2025-08-03",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"compatibility_date": "2025-11-05",
|
||||
"workers_dev": true,
|
||||
"minify": true,
|
||||
"assets": {
|
||||
|
||||
Reference in New Issue
Block a user