kavoru 0.8.12 → 0.9.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kavoru",
3
- "version": "0.8.12",
3
+ "version": "0.9.0",
4
4
  "description": "Scaffold a new Kavoru (Elysia + Bun) backend from the official template",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.ts CHANGED
@@ -155,10 +155,12 @@ export async function runCli(options: CliOptions): Promise<void> {
155
155
  console.log(" bun install");
156
156
  }
157
157
  if (featureSelection.cli) {
158
+ console.log(" ./kavoru module <name> # Git Bash / macOS / Linux");
159
+ console.log(" .\\kavoru.cmd module <name> # Windows cmd / PowerShell");
158
160
  if (!options.install) {
159
- console.log(" bun run link-cli # optional: put kavoru on PATH");
161
+ console.log(" bun run link-cli # bare kavoru on PATH (~/.bun/bin)");
160
162
  }
161
- console.log(" kavoru module <name> # generate modules");
163
+ console.log(" bunx kavoru@latest module <name> # works without PATH setup");
162
164
  }
163
165
  console.log(" bunx kavoru@latest <dir> # scaffold another project");
164
166
  console.log(" bun run dev");
package/src/features.ts CHANGED
@@ -498,8 +498,13 @@ async function patchPackageJson(
498
498
 
499
499
  if (!selection.cli) {
500
500
  delete pkg.bin;
501
+ if (pkg.scripts?.postinstall === "bun scripts/link-cli.ts") {
502
+ delete pkg.scripts.postinstall;
503
+ }
501
504
  } else {
502
505
  pkg.bin = { kavoru: "./bin/kavoru.js" };
506
+ pkg.scripts ??= {};
507
+ pkg.scripts.postinstall = "bun scripts/link-cli.ts";
503
508
  }
504
509
 
505
510
  await Bun.write(pkgPath, `${JSON.stringify(pkg, null, 2)}\n`);