claude-code-templates 1.28.1 → 1.28.2
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/skill-dashboard.js +17 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-templates",
|
|
3
|
-
"version": "1.28.
|
|
3
|
+
"version": "1.28.2",
|
|
4
4
|
"description": "CLI tool to setup Claude Code configurations with framework-specific commands, automation hooks and MCP Servers for your projects",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
package/src/skill-dashboard.js
CHANGED
|
@@ -377,11 +377,23 @@ class SkillDashboard {
|
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
async startServer() {
|
|
380
|
-
return new Promise((resolve) => {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
380
|
+
return new Promise((resolve, reject) => {
|
|
381
|
+
const tryPort = (port) => {
|
|
382
|
+
this.httpServer = this.app.listen(port, async () => {
|
|
383
|
+
this.port = port;
|
|
384
|
+
console.log(chalk.green(`🎯 Skills dashboard started at http://localhost:${this.port}`));
|
|
385
|
+
resolve();
|
|
386
|
+
}).on('error', (err) => {
|
|
387
|
+
if (err.code === 'EADDRINUSE') {
|
|
388
|
+
console.log(chalk.yellow(`⚠️ Port ${port} is in use, trying ${port + 1}...`));
|
|
389
|
+
tryPort(port + 1);
|
|
390
|
+
} else {
|
|
391
|
+
reject(err);
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
tryPort(this.port);
|
|
385
397
|
});
|
|
386
398
|
}
|
|
387
399
|
|