@lvnt/release-radar 1.6.2 → 1.6.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.
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49,8 +49,9 @@ try {
|
|
|
49
49
|
catch {
|
|
50
50
|
console.log('No downloads.json found, CLI generation disabled');
|
|
51
51
|
}
|
|
52
|
-
// Data directory - use
|
|
53
|
-
const
|
|
52
|
+
// Data directory - use ~/.release-radar for user-writable storage
|
|
53
|
+
const HOME_DIR = process.env.HOME || process.env.USERPROFILE || '/tmp';
|
|
54
|
+
const DATA_DIR = process.env.RELEASE_RADAR_DATA_DIR || join(HOME_DIR, '.release-radar');
|
|
54
55
|
if (!existsSync(DATA_DIR)) {
|
|
55
56
|
mkdirSync(DATA_DIR, { recursive: true });
|
|
56
57
|
}
|