2023-08-03 19:22:34 +02:00
|
|
|
import * as plugins from './npmextra.plugins.js';
|
2016-07-17 01:23:22 +02:00
|
|
|
|
|
|
|
// directories
|
2018-08-31 01:11:09 +02:00
|
|
|
export let cwd = process.cwd();
|
2023-08-03 19:22:34 +02:00
|
|
|
export let packageDir = plugins.path.join(
|
|
|
|
plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
|
|
|
|
'../'
|
|
|
|
);
|
2016-07-17 01:23:22 +02:00
|
|
|
|
2017-03-18 16:23:47 +01:00
|
|
|
// ----------------------
|
2016-09-24 21:49:53 +02:00
|
|
|
// keyValueStore specific
|
2017-03-18 16:23:47 +01:00
|
|
|
// ----------------------
|
|
|
|
|
2018-08-31 01:11:09 +02:00
|
|
|
export let home = plugins.smartpath.get.home();
|
2017-07-12 17:13:29 +02:00
|
|
|
|
2017-03-18 16:23:47 +01:00
|
|
|
/**
|
|
|
|
* keyValue base path
|
|
|
|
*/
|
2023-08-24 10:39:47 +02:00
|
|
|
export let kvUserHomeDirBase = plugins.path.join(home, '.npmextra/kv');
|
2016-09-24 21:49:53 +02:00
|
|
|
|
2016-09-16 22:28:38 +02:00
|
|
|
// files
|
2018-08-31 01:11:09 +02:00
|
|
|
export let configFile = plugins.path.join(cwd, 'npmextra.json');
|