nextjs-hackathon-stack 0.1.34 → 0.1.35
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/dist/index.js +14 -0
- package/package.json +1 -1
- package/template/.cursor/mcp.json +2 -2
package/dist/index.js
CHANGED
|
@@ -307,6 +307,20 @@ async function scaffold(projectName, skipInstall, skipMcp = false, template = "e
|
|
|
307
307
|
spinner2.stop("mcp-memory-service installation failed");
|
|
308
308
|
p3.log.warn("Install manually: pip install mcp-memory-service");
|
|
309
309
|
}
|
|
310
|
+
const mcpFiles = [
|
|
311
|
+
join(targetDir, ".cursor", "mcp.json"),
|
|
312
|
+
join(targetDir, ".mcp.json")
|
|
313
|
+
];
|
|
314
|
+
try {
|
|
315
|
+
const memoryBinPath = execSync("which memory", { stdio: "pipe" }).toString().trim();
|
|
316
|
+
for (const mcpFile of mcpFiles) {
|
|
317
|
+
if (existsSync(mcpFile)) {
|
|
318
|
+
const content = readFileSync(mcpFile, "utf-8");
|
|
319
|
+
writeFileSync(mcpFile, content.replace('"command": "memory"', `"command": "${memoryBinPath}"`));
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
} catch {
|
|
323
|
+
}
|
|
310
324
|
}
|
|
311
325
|
success(pc2.bold(`\xA1Proyecto "${projectName}" creado!`));
|
|
312
326
|
console.log(`
|
package/package.json
CHANGED