init-xmcp 0.3.0 → 0.3.1

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > init-xmcp@0.3.0 build /home/runner/work/xmcp/xmcp/packages/init-xmcp
2
+ > init-xmcp@0.3.1 build /home/runner/work/xmcp/xmcp/packages/init-xmcp
3
3
  > tsc
4
4
 
@@ -9,7 +9,8 @@ import { execSync } from "child_process";
9
9
  * @returns Package manager name (npm, yarn, or pnpm)
10
10
  */
11
11
  export function detectPackageManager(projectPath) {
12
- if (fs.existsSync(path.join(projectPath, "bun.lockb"))) {
12
+ if (fs.existsSync(path.join(projectPath, "bun.lockb")) ||
13
+ fs.existsSync(path.join(projectPath, "bun.lock"))) {
13
14
  return "bun";
14
15
  }
15
16
  if (fs.existsSync(path.join(projectPath, "yarn.lock"))) {
@@ -28,7 +29,7 @@ export function detectPackageManager(projectPath) {
28
29
  * @param packageManager - Package manager to use (npm, yarn, pnpm, or bun)
29
30
  */
30
31
  export async function install(projectPath, packageManager) {
31
- const dependencies = ["xmcp", "zod"];
32
+ const dependencies = ["xmcp", "zod@^3.25.76"]; // pin zod to specific version to avoid compilation errors
32
33
  const devDependencies = ["swc-loader"];
33
34
  const commands = {
34
35
  npm: `npm install ${dependencies.join(" ")} && npm install --save-dev ${devDependencies.join(" ")}`,
package/dist/index.js CHANGED
@@ -155,6 +155,7 @@ const program = new Command()
155
155
  { name: "npm", value: "npm" },
156
156
  { name: "yarn", value: "yarn" },
157
157
  { name: "pnpm", value: "pnpm" },
158
+ { name: "bun", value: "bun" },
158
159
  ],
159
160
  default: packageManager,
160
161
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "init-xmcp",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "author": {
5
5
  "name": "Basement Studio",
6
6
  "email": "hello@basement.studio",
@@ -13,7 +13,10 @@ import { execSync } from "child_process";
13
13
  export function detectPackageManager(
14
14
  projectPath: string
15
15
  ): "npm" | "yarn" | "pnpm" | "bun" | null {
16
- if (fs.existsSync(path.join(projectPath, "bun.lockb"))) {
16
+ if (
17
+ fs.existsSync(path.join(projectPath, "bun.lockb")) ||
18
+ fs.existsSync(path.join(projectPath, "bun.lock"))
19
+ ) {
17
20
  return "bun";
18
21
  }
19
22
  if (fs.existsSync(path.join(projectPath, "yarn.lock"))) {
@@ -36,7 +39,7 @@ export async function install(
36
39
  projectPath: string,
37
40
  packageManager: "npm" | "pnpm" | "yarn" | "bun"
38
41
  ) {
39
- const dependencies = ["xmcp", "zod"];
42
+ const dependencies = ["xmcp", "zod@^3.25.76"]; // pin zod to specific version to avoid compilation errors
40
43
  const devDependencies = ["swc-loader"];
41
44
 
42
45
  const commands = {
package/src/index.ts CHANGED
@@ -196,6 +196,7 @@ const program = new Command()
196
196
  { name: "npm", value: "npm" },
197
197
  { name: "yarn", value: "yarn" },
198
198
  { name: "pnpm", value: "pnpm" },
199
+ { name: "bun", value: "bun" },
199
200
  ],
200
201
  default: packageManager,
201
202
  });