From 613a70b4594ad6e2804f8b6024fc9c07dd8c6a0b Mon Sep 17 00:00:00 2001 From: cah4a Date: Mon, 1 Jul 2024 15:36:37 +0300 Subject: [PATCH] add example readme --- example/README.md | 17 +++++++++++++---- example/package.json | 2 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/example/README.md b/example/README.md index 92a6674..89be0ba 100644 --- a/example/README.md +++ b/example/README.md @@ -1,15 +1,24 @@ # trpc-bun-adapter-example -To install dependencies: +This is a minimal example of how to use the `trpc-bun-adapter` package. + +## Run example + +Install dependencies: ```bash bun install ``` -To run: +Bundle client code: + +```bash +bun bundle +``` + +Start the server ```bash -bun run index.ts +bun start ``` -This project was created using `bun init` in bun v1.1.10. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime. diff --git a/example/package.json b/example/package.json index 1802dab..ce03514 100644 --- a/example/package.json +++ b/example/package.json @@ -3,7 +3,7 @@ "module": "server.ts", "type": "module", "scripts": { - "start": "bun server/index.ts --watch", + "start": "bun --watch server/index.ts", "bundle": "bun build --outdir dist client/app.tsx" }, "devDependencies": {