@ottocode/install 0.1.188 → 0.1.189

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/package.json +1 -1
  2. package/start.js +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ottocode/install",
3
- "version": "0.1.188",
3
+ "version": "0.1.189",
4
4
  "description": "AI-powered development assistant CLI - npm installer",
5
5
  "author": "nitishxyz",
6
6
  "license": "MIT",
package/start.js CHANGED
@@ -28,7 +28,8 @@ function isInWorkspace() {
28
28
  }
29
29
 
30
30
  function findBinaryInPath() {
31
- const pathDirs = (process.env.PATH || '').split(':');
31
+ const sep = platform() === 'win32' ? ';' : ':';
32
+ const pathDirs = (process.env.PATH || '').split(sep);
32
33
  const ext = platform() === 'win32' ? '.exe' : '';
33
34
  const currentScript = fileURLToPath(import.meta.url);
34
35
 
@@ -231,7 +232,8 @@ async function install() {
231
232
  console.log(`Version: ${result.stdout.trim()}`);
232
233
  console.log(`Location: ${binPath}`);
233
234
 
234
- const pathDirs = (process.env.PATH || '').split(':');
235
+ const pathSep = platform() === 'win32' ? ';' : ':';
236
+ const pathDirs = (process.env.PATH || '').split(pathSep);
235
237
  if (!pathDirs.includes(userBin)) {
236
238
  updateShellProfile(userBin);
237
239
  console.log(`\n⚠️ Add ${userBin} to your PATH:`);