@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.
- package/package.json +1 -1
- package/start.js +4 -2
package/package.json
CHANGED
package/start.js
CHANGED
|
@@ -28,7 +28,8 @@ function isInWorkspace() {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
function findBinaryInPath() {
|
|
31
|
-
const
|
|
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
|
|
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:`);
|