File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 2222 " testemonials"
2323 ],
2424 "scripts" : {
25- "postinstall" : " node dist/track-installation.js && node dist/npm-scripts/verify-ripgrep.js || true " ,
25+ "postinstall" : " node dist/track-installation.js && node dist/npm-scripts/verify-ripgrep.js || node -e \" process.exit(0) \" " ,
2626 "open-chat" : " open -n /Applications/Claude.app" ,
2727 "sync-version" : " node scripts/sync-version.js" ,
2828 "bump" : " node scripts/sync-version.js --bump" ,
3232 "watch" : " tsc --watch" ,
3333 "start" : " node dist/index.js" ,
3434 "start:debug" : " node --inspect-brk=9229 dist/index.js" ,
35- "setup" : " npm install && npm run build && node setup-claude-server.js" ,
35+ "setup" : " npm install --include=dev && npm run build && node setup-claude-server.js" ,
3636 "setup:debug" : " npm install && npm run build && node setup-claude-server.js --debug" ,
3737 "remove" : " npm install && npm run build && node uninstall-claude-server.js" ,
3838 "prepare" : " npm run build" ,
Original file line number Diff line number Diff line change @@ -33,10 +33,11 @@ export async function getRipgrepPath(): Promise<string> {
3333 // @vscode /ripgrep import or binary resolution failed, continue to fallbacks
3434 }
3535
36- // Strategy 2: Try system ripgrep using 'which' command
36+ // Strategy 2: Try system ripgrep using 'which' (Unix) or 'where' (Windows)
3737 try {
3838 const systemRg = process . platform === 'win32' ? 'rg.exe' : 'rg' ;
39- const result = execSync ( `which ${ systemRg } ` , { encoding : 'utf-8' } ) . trim ( ) ;
39+ const whichCmd = process . platform === 'win32' ? 'where' : 'which' ;
40+ const result = execSync ( `${ whichCmd } ${ systemRg } ` , { encoding : 'utf-8' } ) . trim ( ) . split ( / \r ? \n / ) [ 0 ] ;
4041 if ( result && existsSync ( result ) ) {
4142 cachedRgPath = result ;
4243 return result ;
You can’t perform that action at this time.
0 commit comments