init-xmcp 0.3.0 → 0.3.1-canary.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.
@@ -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-canary.0 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"))) {
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-canary.0",
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"))) {
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
  });