@hasna/microservices 0.0.31 → 0.0.32
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/bin/index.js +10 -2
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -3749,7 +3749,10 @@ program2.command("remove <name>").description("Remove an installed microservice"
|
|
|
3749
3749
|
console.error(source_default.red("Refusing to remove without confirmation in non-interactive mode. Re-run with --yes."));
|
|
3750
3750
|
process.exit(1);
|
|
3751
3751
|
}
|
|
3752
|
-
const rl = createInterface({
|
|
3752
|
+
const rl = createInterface({
|
|
3753
|
+
input: process.stdin,
|
|
3754
|
+
output: process.stdout
|
|
3755
|
+
});
|
|
3753
3756
|
try {
|
|
3754
3757
|
const answer = await rl.question(`Remove ${name} from your global Bun installation? [y/N] `);
|
|
3755
3758
|
const confirmed = ["y", "yes"].includes(answer.trim().toLowerCase());
|
|
@@ -3866,7 +3869,12 @@ Starting ${installed.length} installed microservices...
|
|
|
3866
3869
|
const m = installed[i];
|
|
3867
3870
|
const color = colors[i % colors.length];
|
|
3868
3871
|
const prefix = color(`[${m.name.padEnd(10)}] `);
|
|
3869
|
-
const
|
|
3872
|
+
const binaryPath = resolveMicroserviceBinary(m.name);
|
|
3873
|
+
if (!binaryPath) {
|
|
3874
|
+
console.error(`${prefix}${source_default.red("Failed to start:")} could not resolve ${m.binary}`);
|
|
3875
|
+
continue;
|
|
3876
|
+
}
|
|
3877
|
+
const proc = spawn2(binaryPath, ["serve"], {
|
|
3870
3878
|
env: process.env,
|
|
3871
3879
|
stdio: ["ignore", "pipe", "pipe"]
|
|
3872
3880
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/microservices",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.32",
|
|
4
4
|
"description": "21 production-grade microservice building blocks for AI-native SaaS — auth, billing, LLM gateway, agent registry, RAG, guardrails, tracing, and more. Each with PostgreSQL, HTTP API, MCP server, and CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|