jstar-reviewer 2.0.1 → 2.0.2

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.
Files changed (2) hide show
  1. package/bin/jstar.js +8 -3
  2. package/package.json +1 -1
package/bin/jstar.js CHANGED
@@ -80,13 +80,18 @@ function runScript(scriptName) {
80
80
 
81
81
  // Prioritize pnpm if available
82
82
  const hasPnpm = commandExists('pnpm');
83
- const runner = hasPnpm ? 'pnpm' : 'npx';
83
+ let runner = hasPnpm ? 'pnpm' : 'npx';
84
84
  const runnerArgs = hasPnpm ? ['dlx', 'ts-node'] : ['ts-node'];
85
85
 
86
- log(`${COLORS.dim}Using ${runner} to run ${scriptName}...${COLORS.reset}`);
86
+ // On Windows, global commands like pnpm/npx are often .cmd files
87
+ // spawn without shell: true requires the full path or extension on Windows
88
+ if (process.platform === 'win32') {
89
+ runner += '.cmd';
90
+ }
91
+
92
+ log(`${COLORS.dim}Using ${runner.replace('.cmd', '')} to run ${scriptName}...${COLORS.reset}`);
87
93
 
88
94
  // Run without shell: true to avoid security warnings
89
- // On Windows, pnpm/npx are .cmd files, handled normally by spawn without shell if extension is omitted
90
95
  const child = spawn(runner, [...runnerArgs, scriptPath, ...process.argv.slice(3)], {
91
96
  cwd: process.cwd(),
92
97
  stdio: 'inherit',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jstar-reviewer",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Local-First, Context-Aware AI Code Reviewer - Works with any language",
5
5
  "bin": {
6
6
  "jstar": "bin/jstar.js"