Compare commits

..

2 Commits

Author SHA1 Message Date
86427ac05d 4.0.2 2023-08-24 22:59:44 +02:00
dc59682c15 fix(core): update 2023-08-24 22:59:43 +02:00
3 changed files with 7 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@push.rocks/npmextra",
"version": "4.0.1",
"version": "4.0.2",
"private": false,
"description": "do more with npm",
"main": "dist_ts/index.js",

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/npmextra',
version: '4.0.1',
version: '4.0.2',
description: 'do more with npm'
}

View File

@@ -16,11 +16,16 @@ export class AppData {
} else {
const appDataDir = '/app/data';
const dataDir = '/data';
const nogitAppData = '.nogit/appdata';
const appDataExists = plugins.smartfile.fs.isDirectory(appDataDir);
const dataExists = plugins.smartfile.fs.isDirectory(dataDir);
if (appDataExists) {
this.dirPathArg = appDataDir;
} else if (dataExists) {
this.dirPathArg = dataDir;
} else {
await plugins.smartfile.fs.ensureDir(nogitAppData);
this.dirPathArg = nogitAppData;
}
}
this.kvStore = new KeyValueStore('custom', 'appkv', this.dirPathArg);