@getstrata/cli 1.1.0 → 1.1.1
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/CHANGELOG.md +4 -0
- package/README.md +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -49,7 +49,9 @@ From the current working directory, `strata` loads `strata.config.ts` if present
|
|
|
49
49
|
| `migrate` | `src/db/migrate.ts` |
|
|
50
50
|
| `fresh` | `src/db/fresh.ts` |
|
|
51
51
|
|
|
52
|
-
`src/cli/register.ts` can export `commands` or `registerCommands()` to add your own commands. Generated apps do not ship one
|
|
52
|
+
`src/cli/register.ts` can export `commands` or `registerCommands()` to add your own commands. Generated apps do not ship one.
|
|
53
|
+
|
|
54
|
+
The published `strata` binary does **not** include monorepo codegen (`make:module`, `make:migration`, `make:job`, `openapi:*`, `queue:work`, `schedule:run`, …). Those commands ship with the [Strata framework repo](https://github.com/EyK-26/strata) CLI (`bun run cli …` when developing the framework). Product apps can copy `src/cli/register.ts` from that repo or implement their own registrars. Scaffold commands resolve paths from the app working directory (`src/modules`, `src/db/migrations`, `src/jobs`). See [docs/BUILDING-APPS.md](https://github.com/EyK-26/strata/blob/main/docs/BUILDING-APPS.md#extending-the-cli).
|
|
53
55
|
|
|
54
56
|
A migrate entry may export `close()`. The CLI calls it after `migrate()` and `fresh()` so pooled drivers such as `mysql2` release the event loop instead of hanging the command.
|
|
55
57
|
|