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