create-catalyst-app-internal 0.1.6 → 0.1.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/cli.cjs +3 -3
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-catalyst-app-internal",
3
3
  "bin": "scripts/cli.cjs",
4
- "version": "0.1.6",
4
+ "version": "0.1.7",
5
5
  "description": "cli package to scaffold Catalyst application",
6
6
  "dependencies": {
7
7
  "commander": "^8.2.0",
package/scripts/cli.cjs CHANGED
@@ -120,7 +120,7 @@ const program = new Commander.Command()
120
120
 
121
121
  if (mcpSupport) {
122
122
  const newMcpDir = path.join(process.cwd(), projectName, "node_modules/catalyst-core/mcp_v2")
123
- runMcpSetup(newMcpDir)
123
+ runMcpSetup(newMcpDir, path.join(process.cwd(), projectName))
124
124
  }
125
125
 
126
126
  execSync(
@@ -248,13 +248,13 @@ program
248
248
 
249
249
  program.parse(process.argv)
250
250
 
251
- function runMcpSetup(mcpDir) {
251
+ function runMcpSetup(mcpDir, cwd = process.cwd()) {
252
252
  const mcpNodeModules = path.join(mcpDir, "node_modules")
253
253
  if (!fs.existsSync(mcpNodeModules)) {
254
254
  console.log(cyan("Installing mcp_v2 dependencies..."))
255
255
  execSync("npm install", { cwd: mcpDir, stdio: "inherit" })
256
256
  }
257
- execSync(`node ${path.join(mcpDir, "setup.js")}`, { stdio: "inherit" })
257
+ execSync(`node ${path.join(mcpDir, "setup.js")}`, { cwd, stdio: "inherit" })
258
258
  }
259
259
 
260
260
  async function promptStateManagement() {