create-catalyst-app-internal 0.1.7 → 0.1.8
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/scripts/cli.cjs +4 -0
package/package.json
CHANGED
package/scripts/cli.cjs
CHANGED
|
@@ -251,6 +251,10 @@ program.parse(process.argv)
|
|
|
251
251
|
function runMcpSetup(mcpDir, cwd = process.cwd()) {
|
|
252
252
|
const mcpNodeModules = path.join(mcpDir, "node_modules")
|
|
253
253
|
if (!fs.existsSync(mcpNodeModules)) {
|
|
254
|
+
const pkgPath = path.join(mcpDir, "package.json")
|
|
255
|
+
const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"))
|
|
256
|
+
pkg.dependencies["better-sqlite3"] = "^12.8.0"
|
|
257
|
+
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2))
|
|
254
258
|
console.log(cyan("Installing mcp_v2 dependencies..."))
|
|
255
259
|
execSync("npm install", { cwd: mcpDir, stdio: "inherit" })
|
|
256
260
|
}
|