create-bodhi-js 0.9.0 → 0.11.0

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/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -33,8 +33,9 @@ var TEMPLATE_FILES = [
33
33
  ];
34
34
  async function processTemplates(targetDir, vars) {
35
35
  const mcpServers = vars.mcpServers ?? [];
36
- const mcpServersLiteral = mcpServers.length === 0 ? "[]" : "[" + mcpServers.map((url) => `{ url: '${url}' }`).join(", ") + "]";
37
- const templateVars = { ...vars, mcpServersLiteral };
36
+ const mcpBuilderCalls = mcpServers.map((url) => `
37
+ .addMcpServer('${url}')`).join("");
38
+ const templateVars = { ...vars, mcpBuilderCalls };
38
39
  for (const file of TEMPLATE_FILES) {
39
40
  const filePath = path.join(targetDir, file);
40
41
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-bodhi-js",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "Scaffold Bodhi-powered applications with React, TypeScript, Vite, and more",
5
5
  "type": "module",
6
6
  "bin": {