jstar-reviewer 2.0.1 → 2.0.3

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 +6 -2
  2. package/package.json +1 -1
package/bin/jstar.js CHANGED
@@ -85,11 +85,15 @@ function runScript(scriptName) {
85
85
 
86
86
  log(`${COLORS.dim}Using ${runner} to run ${scriptName}...${COLORS.reset}`);
87
87
 
88
- // 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
88
+ // On Windows, global commands like pnpm/npx are .cmd files.
89
+ // spawn without shell: true often fails with EINVAL or ENOENT on Windows.
90
+ // We use shell: true only on Windows for reliability.
91
+ const isWin = process.platform === 'win32';
92
+
90
93
  const child = spawn(runner, [...runnerArgs, scriptPath, ...process.argv.slice(3)], {
91
94
  cwd: process.cwd(),
92
95
  stdio: 'inherit',
96
+ shell: isWin,
93
97
  env: {
94
98
  ...process.env,
95
99
  JSTAR_CWD: process.cwd()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jstar-reviewer",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "Local-First, Context-Aware AI Code Reviewer - Works with any language",
5
5
  "bin": {
6
6
  "jstar": "bin/jstar.js"