- Rename all source files from npmextra.* to simpler names (classes.appdata.ts, etc.) - Rename Npmextra class to Smartconfig - Config file changed from npmextra.json to smartconfig.json - KV store path changed from ~/.npmextra/kv to ~/.smartconfig/kv - Update all imports, tests, and metadata
23 lines
523 B
TypeScript
23 lines
523 B
TypeScript
import * as plugins from './plugins.js';
|
|
|
|
// directories
|
|
export let cwd = process.cwd();
|
|
export let packageDir = plugins.path.join(
|
|
plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
|
|
'../',
|
|
);
|
|
|
|
// ----------------------
|
|
// keyValueStore specific
|
|
// ----------------------
|
|
|
|
export let home = plugins.smartpath.get.home();
|
|
|
|
/**
|
|
* keyValue base path
|
|
*/
|
|
export let kvUserHomeDirBase = plugins.path.join(home, '.smartconfig/kv');
|
|
|
|
// files
|
|
export let configFile = plugins.path.join(cwd, 'smartconfig.json');
|