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.
- package/README.md +1 -1
- 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.
|
|
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
|