create-rsc-kit 0.30.14 → 0.30.16

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/dist/templates.js CHANGED
@@ -777,6 +777,14 @@ it before any page. ${o.env
777
777
  render waits for it). Do not import a bootstrap module from pages to get the
778
778
  same effect; it depends on nobody forgetting.
779
779
 
780
+ A release step or a worker is a file in \`${o.sourceDir}/commands\` with a default
781
+ export — \`export default async (args: string[]) => 0\` — run as \`./app migrate\`
782
+ from the compiled binary or \`node .output/server/commands.mjs migrate\` from a
783
+ plain build. It shares the app's code, so there is no second entry point or
784
+ binary to write. The return value is the exit code, and \`register()\` runs for a
785
+ command only if it exports \`register = true\`. Never run a command as
786
+ \`node .output/server/index.mjs migrate\`: that is the server, and it starts.
787
+
780
788
  ${o.pwa ? `## Installable
781
789
 
782
790
  \`offline: true\` is on and \`${o.sourceDir}/app/manifest.ts\` declares the app. Icons are
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rsc-kit",
3
- "version": "0.30.14",
3
+ "version": "0.30.16",
4
4
  "type": "module",
5
5
  "description": "Scaffold an RSC app on Bun, Hono, Elysia or Node.",
6
6
  "bin": {