algomath-extract 1.0.5 → 1.0.6
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/bin/install.js +4 -1
- package/package.json +1 -1
package/bin/install.js
CHANGED
|
@@ -368,7 +368,9 @@ fs.copyFileSync(source, dest);
|
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
|
|
371
|
-
// Create opencode.json
|
|
371
|
+
// Create opencode.json only for global installs
|
|
372
|
+
// Local installs should not create this file as it's not recognized by opencode
|
|
373
|
+
if (location === 'global') {
|
|
372
374
|
const configPath = path.join(targetDir, 'opencode.json');
|
|
373
375
|
if (!fs.existsSync(configPath)) {
|
|
374
376
|
const config = {
|
|
@@ -408,6 +410,7 @@ fs.unlinkSync(tempConfig);
|
|
|
408
410
|
fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
|
|
409
411
|
}
|
|
410
412
|
}
|
|
413
|
+
}
|
|
411
414
|
|
|
412
415
|
console.log(` ✓ Installed to ${runtime} (${location})`);
|
|
413
416
|
}
|