cli create: updated templates, reworked examples to be standalone

This commit is contained in:
dswbx
2025-02-14 14:56:35 +01:00
parent b412da836c
commit 4bd201d454
18 changed files with 85 additions and 106 deletions

View File

@@ -8,10 +8,7 @@ import { type BunBkndConfig, serve } from "bknd/adapter/bun";
const config: BunBkndConfig = {
connection: {
url: ":memory:"
},
// this is only required to run inside the same workspace
// leave blank if you're running this from a different project
distPath: "../../app/dist"
}
};
serve(config);

View File

@@ -4,10 +4,11 @@
"type": "module",
"private": true,
"scripts": {
"dev": "bun run --hot index.ts"
"dev": "bun run --hot index.ts",
"start": "bun run index.ts"
},
"dependencies": {
"bknd": "workspace:*"
"bknd": "file:../../app"
},
"devDependencies": {
"@types/bun": "latest"