diff --git a/package.json b/package.json index f9c197a..3e11724 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ ], "scripts": { "start": "bun run src/ccstatusline.ts", - "build": "rm -rf dist/* && bun build src/ccstatusline.ts --target=node --outfile=dist/ccstatusline.js --target-version=14", + "build": "rm -rf dist/* ; bun build src/ccstatusline.ts --target=node --outfile=dist/ccstatusline.js --target-version=14", "postbuild": "bun run scripts/replace-version.ts", "example": "cat scripts/payload.example.json | bun start", "prepublishOnly": "bun run build", @@ -70,4 +70,4 @@ "patchedDependencies": { "ink@6.2.0": "patches/ink@6.2.0.patch" } -} +} \ No newline at end of file diff --git a/src/utils/claude-settings.ts b/src/utils/claude-settings.ts index e205409..2fdc1a6 100644 --- a/src/utils/claude-settings.ts +++ b/src/utils/claude-settings.ts @@ -43,7 +43,9 @@ export async function isInstalled(): Promise { export function isBunxAvailable(): boolean { try { - execSync('which bunx', { stdio: 'ignore' }); + // Use platform-appropriate command to check for bunx availability + const command = process.platform === 'win32' ? 'where bunx' : 'which bunx'; + execSync(command, { stdio: 'ignore' }); return true; } catch { return false;