pi-bridge 0.1.3 → 0.1.4

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/pii.js +2 -3
  2. package/package.json +1 -1
package/bin/pii.js CHANGED
@@ -20,9 +20,8 @@ const preload = path.join(__dirname, '..', 'src', 'local', 'preload.js');
20
20
 
21
21
  function findPiCli() {
22
22
  // npm root -g gives the exact global node_modules dir on all platforms.
23
- // On Windows the npm executable is npm.cmd — use that explicitly.
24
- const npmBin = os.platform() === 'win32' ? 'npm.cmd' : 'npm';
25
- const npmRoot = execFileSync(npmBin, ['root', '-g'], { encoding: 'utf8' }).trim();
23
+ // Use shell:true so Windows can resolve npm.cmd without ENOENT.
24
+ const npmRoot = execFileSync('npm', ['root', '-g'], { encoding: 'utf8', shell: true }).trim();
26
25
  const cli = path.join(npmRoot, '@mariozechner', 'pi-coding-agent', 'dist', 'cli.js');
27
26
 
28
27
  if (!fs.existsSync(cli)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-bridge",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Transparent filesystem bridge that makes pi run natively on a remote machine over SSH",
5
5
  "type": "commonjs",
6
6
  "bin": {