Skip to content

Commit 85c8883

Browse files
committed
Externalising node-which during build
1 parent 0b1b69b commit 85c8883

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"mcp-server-cloudflare": "dist/index.js"
2020
},
2121
"scripts": {
22-
"build": "tsup src/index.ts --dts --format esm --external xdg-app-paths",
22+
"build": "tsup src/index.ts --dts --format esm --external xdg-app-paths --external which",
2323
"postbuild": "shx chmod +x dist/*.js",
2424
"check": "tsc --noEmit",
2525
"build:watch": "pnpm build --watch"

src/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export async function init(accountTag: string | undefined) {
9898
'claude_desktop_config.json',
9999
)
100100
const cloudflareConfig = {
101-
command: (await which('node')).stdout.trim(),
101+
command: (await which('node')).trim(),
102102
args: [__filename, 'run', account],
103103
}
104104

0 commit comments

Comments
 (0)