kavoru 0.8.11 → 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 +1 -1
- package/src/cli.ts +5 -2
- package/src/features.ts +5 -0
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -155,11 +155,14 @@ 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
|
|
161
|
+
console.log(" bun run link-cli # bare kavoru on PATH (~/.bun/bin)");
|
|
160
162
|
}
|
|
161
|
-
console.log(" kavoru module <name>");
|
|
163
|
+
console.log(" bunx kavoru@latest module <name> # works without PATH setup");
|
|
162
164
|
}
|
|
165
|
+
console.log(" bunx kavoru@latest <dir> # scaffold another project");
|
|
163
166
|
console.log(" bun run dev");
|
|
164
167
|
console.log();
|
|
165
168
|
console.log(" API: http://localhost:3131");
|
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`);
|