Skip to content

Commit 32e03b8

Browse files
author
Akos Komuves
committed
update cli.js to handle errors and bump version to 0.0.13
1 parent 2883bd2 commit 32e03b8

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

cli.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ const emitter = degit(repo, { cache: false, force: true, verbose: true });
66

77
const targetDir = process.argv[2] || ".";
88

9-
emitter.clone(targetDir).then(() => {
10-
console.log("Template copied!");
11-
});
9+
emitter.clone(targetDir)
10+
.then(() => {
11+
console.log("Template copied!");
12+
process.exit(0);
13+
})
14+
.catch((error) => {
15+
console.error("Failed to copy template:", error);
16+
process.exit(1);
17+
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@akoskm/create-mcp-server-stdio",
3-
"version": "0.0.12",
3+
"version": "0.0.13",
44
"description": "MCP Server Starter kit using the StdioServerTransport",
55
"main": "cli.js",
66
"packageManager": "[email protected]",

0 commit comments

Comments
 (0)