typebulb 0.2.3 → 0.2.4

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 +6 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -21,7 +21,7 @@ npm install -g typebulb
21
21
  ```
22
22
  typebulb <file.bulb.md> Run a bulb
23
23
  typebulb . Find .bulb.md in current directory
24
- typebulb --watch <file> Watch for changes and reload
24
+ typebulb --no-watch <file> Disable hot reload
25
25
  typebulb --port 3333 <file> Custom port
26
26
  typebulb --no-open <file> Don't auto-open browser
27
27
  typebulb --server <file> Run server.ts only, no web server
@@ -29,13 +29,13 @@ typebulb --server <file> Run server.ts only, no web server
29
29
 
30
30
  ## Features
31
31
 
32
- - **Hot reload** — `--watch` recompiles on save and refreshes the browser
32
+ - **Hot reload** — Recompiles on save and refreshes the browser (on by default; disable with `--no-watch`)
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.<name>()` (e.g., `export async function query(...)` → `await tb.server.query(...)`)
35
- - **Built-in server functions** — `tb.server.log(...)` prints to the CLI's stdout, no `**server.ts**` needed. User exports override built-ins.
36
- - **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.
37
- - **Auto-installs packages** — npm dependencies in server code are installed automatically
38
34
  - **Env files** — `.env` and `.env.local` auto-loaded from cwd
35
+ - **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(...)`)
36
+ - **CLI logging** — `tb.server.log(...)` prints to the CLI's stdout
37
+ - **Server mode** — `--server` runs only the `**server.ts**` section in Node, skipping the web server. Bulbs with only `**server.ts**` (no `**code.tsx**`) use this mode automatically.
38
+ - **Package resolution** — Client dependencies are automatically resolved by generating import maps (same resolver as typebulb.com). Server dependencies are automatically installed via npm.
39
39
 
40
40
  ## Limitations
41
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typebulb",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Local bulb runner CLI for Typebulb",
5
5
  "license": "MIT",
6
6
  "engines": { "node": ">=18" },