typebulb 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -31,7 +31,7 @@ typebulb --server <file> Run server.ts only, no web server
31
31
 
32
32
  - **Hot reload** — `--watch` recompiles on save and refreshes the browser
33
33
  - **Filesystem access** — `tb.fs.read()` and `tb.fs.write()` for local files
34
- - **Server-side code** — Add a `**server.ts**` section; exported functions become callable from the browser via `tb.server.fn()`
34
+ - **Server-side code** — Add a `**server.ts**` section; exported functions become callable from the browser via `tb.server.<name>()` (e.g., `export async function query(...)` → `await tb.server.query(...)`)
35
35
  - **Console bulbs** — Bulbs with only `**server.ts**` (no `**code.tsx**`) run directly in Node and print to stdout. Use `--server` to force this mode for any bulb.
36
36
  - **Auto-installs packages** — npm dependencies in server code are installed automatically
37
37
  - **Env files** — `.env` and `.env.local` auto-loaded from cwd
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typebulb",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Local bulb runner CLI for Typebulb",
5
5
  "license": "MIT",
6
6
  "engines": { "node": ">=18" },