create-catalyst-app-internal 0.1.2 → 0.1.3

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 +2 -4
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.2",
4
+ "version": "0.1.3",
5
5
  "description": "cli package to scaffold Catalyst application",
6
6
  "dependencies": {
7
7
  "commander": "^8.2.0",
package/scripts/cli.cjs CHANGED
@@ -44,8 +44,7 @@ const program = new Commander.Command()
44
44
  }
45
45
 
46
46
  if (process.argv.includes("mcp-setup")) {
47
- const setupPath = path.join(process.cwd(), "node_modules/catalyst-core-internal/mcp_v2/setup.js")
48
- execSync(`node ${setupPath}`, { stdio: "inherit" })
47
+ execSync(` cd ${projectName} && node node_modules/catalyst-core-internal/mcp_v2/setup.js`, { stdio: "inherit" })
49
48
  return
50
49
  }
51
50
 
@@ -125,8 +124,7 @@ const program = new Commander.Command()
125
124
  }
126
125
 
127
126
  if (mcpSupport) {
128
- const setupPath = path.join(process.cwd(), projectName, "node_modules/catalyst-core-internal/mcp_v2/setup.js")
129
- execSync(`node ${setupPath}`, { stdio: "inherit" })
127
+ execSync(` cd ${projectName} && node node_modules/catalyst-core-internal/mcp_v2/setup.js`, { stdio: "inherit" })
130
128
  }
131
129
 
132
130
  execSync(